Creative Communities of the World Forums

The peer to peer support community for media production professionals.

  • Posted by Mark Cookman on July 5, 2005 at 2:19 pm

    err ….. sorry, im back re the upload script 🙂

    I have edited the config to allow uploading of zip but uploads always fail.
    Any hints would be much appreciated.
    regards
    Mark

    I think this is the relevant config section…………..:

    $FILE_EXTENSIONS = array(
    “audio” => array(“mp3″,”aif”,”aiff”, “wav”),
    “image” => array(“jpg”,”jpeg”, “gif”, “png”),
    “msoffice_access” => array(“mdb”),
    “msoffice_excel” => array(“xls”),
    “msoffice_ppt” => array(“ppt”),
    “msoffice_project” => array(“mmp”),
    “msoffice_word” => array(“doc”),
    “pdf” => array(“pdf”),
    “text” => array(“rtf”, “txt”),
    “video” => array(“mov”, “avi”, “mpeg”),
    “web” => array(“html”, “htm”, “js”, “css” , “zip”),
    );

    /////////////////////////////////////////////////////////////
    // acceptable file types for uploads – be VERY careful
    // should be noted that this is rather dangerous and it is
    /////////////////////////////////////////////////////////////

    $ACCEPTABLE_UPLOAD_FILE_TYPES = array(
    “text/html” => 50000000,
    “image/pjpeg” => 50000000,
    “image/jpeg” => 50000000,
    “image/jpg” => 50000000,
    “image/gif” => 50000000,
    “video/quicktime” => 200000000,
    “web/zip” => 200000000,
    );

    Mark Cookman replied 20 years, 12 months ago 2 Members · 2 Replies
  • 2 Replies
  • Curtis Thompson

    July 5, 2005 at 3:02 pm

    hello…

    looks like you have the wrong mime type…

    “web/zip” => 200000000,

    google “zip mime type” and you’ll see what it is and how those work…

    sitruc

  • Mark Cookman

    July 5, 2005 at 3:15 pm

    Rokkin!

    $ACCEPTABLE_UPLOAD_FILE_TYPES = array(
    “video/quicktime” => 200000000,
    “application/zip” => 50000000,

    );

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy