I can upload PDF, JPG, ZIP but cannot seem to upload DOC, DOCX, or XLS. All file extensions are in the whitelist (Admin Area > Main > Configuration > Advanced > file upload whitelist).
Ideas? Solutions?
Uploading files
Re: Uploading files
Issue resolved:
Added the following to 'function mimetype($ext)' in /lib/mimetype.php:
Added the following to 'function mimetype($ext)' in /lib/mimetype.php:
Code: Select all
case "doc" : case "dot" :
return 'application/msword';
case "docx" :
return 'application/vnd.openxmlformats-officedocument.wordprocessingml.document';
case "xls";
return 'application/vnd.ms-excel';
case "xlsx";
return 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet';
case "ppt";
return 'application/vnd.ms-powerpoint';
case "pptx";
return 'application/vnd.openxmlformats-officedocument.presentationml.presentation';
Re: Uploading files
Sorry, it's /lib/lib.mimetype.php
Re: Uploading files
Hi rsaucier, thanks for posting your solution!
Re: Uploading files
Hi, the mimetypes list has been updated and integrated in Forma 1.0