• A typical way to compress a folder on MacOS is to right-click the folder and select “compress.” However, uploading that zip file (via the drag&drop interface) results in the following error message:

    The zip file was not valid; it needs to contain a single top-level directory with name exactly equal to the plugin slug (ml-slider-pro). The additional entry encountered was: __MACOSX

    It must be some sort of hidden file as there’s nothing with that filename anywhere to be found (even with hidden files enabled).

    What I did instead, that worked, is via the terminal:
    zip -r ml-slider-pro.2.18.0.zip ml-slider-pro

    I’m fine with the command line, but wanted to report the issue in case you wanted to support the former too.

Viewing 1 replies (of 1 total)
  • Plugin Author David Anderson

    (@davidanderson)

    Hi Kevin,

    Some tools on a Mac do create an extra directory called __MACOSX. It’s used to store file meta-data, and relates to the ancient semantics of Mac file systems (data fork / resource fork). Macs apparently then treat it as a “hidden” file – i.e. it doesn’t show up in the regular file viewer. But if you use other tools you’ll see it (perhaps you have the “zipinfo” command line tool?). This URL has the “zip” command necessary to get rid of it: https://perishablepress.com/remove-macosx-ds-store-zip-files-mac/

    David

Viewing 1 replies (of 1 total)
  • The topic ‘Issue uploading zip files compressed on MacOS’ is closed to new replies.