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? Link to comment https://forums.phpfreaks.com/topic/245041-allowing-more-file-extensions/ 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. Link to comment https://forums.phpfreaks.com/topic/245041-allowing-more-file-extensions/#findComment-1258880 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? Link to comment https://forums.phpfreaks.com/topic/245041-allowing-more-file-extensions/#findComment-1258994 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.