setting i have created for allowed type:
$config['allowed_types'] = 'doc|docx|pdf|xls|xlsx|rtf|txt|rar|zip';
and in my mine.php
'zip' => array('application/x-zip', 'application/zip', 'application/x-zip-compressed','application/force-download'),
'rar' => array('application/x-rar', 'application/rar','application/x-rar-compressed','application/force-download'),
this is all i have configured but when i do the zip or rar upload its shows me error that "The filetype you are attempting to upload is not allowed."
PLEASE HELP ANY ONE .. THANKS IN ADVANCE..
i replace the mime.php configuration for zip and rar to:
i have just added the application/octet-stream at the end.. for both the type and now i am able to upload both zip and rar... :) now i am happy
Here is the best way to check MIME type.
open system/libraries/upload.php in codeigniter framework. Check the commented below. You will get the exact MIME type and include the same MIME type in your mimes.php file.