I faced this issue when I was trying to zip python project and then upload archive to execute the code. The main reason is zip in MacOS put extra system files by default. Flag "-X" helped me to solve this. zip -r -X archive.zip my_folder
zip -r -X archive.zip my_folder