The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End [WORDPRESS] How to upload ZIP files in custom meta box file uploader?

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #242750

    I’m trying to follow this tutorial.
    But instead of using PDF I would like to use ZIP.

    I replaced this line:
    $supported_types = array('application/pdf');
    $supported_types = array('application/zip, application/x-compressed-zip');

    and even if I upload an actual ZIP file the error message still pops up.

    Here is a pastebin of my custom post type and meta box etc.

    I have tried to google the issue and tried to rephrase my questions the best way I can but I still have not found a solution :/

    It’s clear I am no professional so people might suggest I use a plug-in but I would actually like to use my functions.php file instead of the plug-ins…

    Could anyone please point me in the right direction?
    All help appreciated !

Viewing 1 post (of 1 total)
  • The forum ‘Back End’ is closed to new topics and replies.