Page 1 of 1
Uploading files
Posted: Tue Sep 11, 2012 4:16 pm
by rsaucier
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?
Re: Uploading files
Posted: Tue Sep 11, 2012 8:27 pm
by rsaucier
Issue resolved:
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
Posted: Tue Sep 11, 2012 9:29 pm
by rsaucier
Sorry, it's /lib/lib.mimetype.php
Re: Uploading files
Posted: Fri Sep 21, 2012 9:02 am
by alberto
Hi rsaucier, thanks for posting your solution!
Re: Uploading files
Posted: Fri Nov 22, 2013 12:32 pm
by alberto
Hi, the mimetypes list has been updated and integrated in Forma 1.0