FORUMS: list search recent posts

client_area script

COW Forums : Web Design

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
mark cookmanclient_area script
by on Jul 5, 2005 at 2:19:35 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,
);


Return to posts index

Curtis ThompsonRe: client_area script
by on Jul 5, 2005 at 3:02:29 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


Return to posts index

mark cookmanRe: client_area script
by on Jul 5, 2005 at 3:15:28 pm


Rokkin!

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

);


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]