droidus Posted August 17, 2011 Share Posted August 17, 2011 where can i find the file extensions, and mimetypes? also, how would i allow all types of file downloads? what would be the cons of allowing all types of file downloads? Quote Link to comment Share on other sites More sharing options...
trq Posted August 18, 2011 Share Posted August 18, 2011 You might want to tell us what application your talking about. Quote Link to comment Share on other sites More sharing options...
droidus Posted August 18, 2011 Author Share Posted August 18, 2011 when downloading files, here is the allowed extensions: $allowed_ext = array ( // archives 'zip' => 'application/zip', // documents 'pdf' => 'application/pdf', 'doc' => 'application/msword', 'xls' => 'application/vnd.ms-excel', 'ppt' => 'application/vnd.ms-powerpoint', // executables 'exe' => 'application/octet-stream', // images 'gif' => 'image/gif', 'png' => 'image/png', 'jpg' => 'image/jpeg', 'jpeg' => 'image/jpeg', // audio 'mp3' => 'audio/mpeg', 'wav' => 'audio/x-wav', // video 'mpeg' => 'video/mpeg', 'mpg' => 'video/mpeg', 'mpe' => 'video/mpeg', 'mov' => 'video/quicktime', 'avi' => 'video/x-msvideo' ); how do i find other extensions, such as .doc, .docx, .mp4, and so on? and would it be smart to allow ALL types of downloads? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.