Uploading files

Anything about what happens on the user and teacher side
Post Reply
rsaucier
Newbie
Posts: 15
Joined: Thu Jul 12, 2012 9:31 pm

Uploading files

Post 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?
rsaucier
Newbie
Posts: 15
Joined: Thu Jul 12, 2012 9:31 pm

Re: Uploading files

Post 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';
rsaucier
Newbie
Posts: 15
Joined: Thu Jul 12, 2012 9:31 pm

Re: Uploading files

Post by rsaucier »

Sorry, it's /lib/lib.mimetype.php
User avatar
alberto
FormaLms Guru
Posts: 1134
Joined: Fri Mar 02, 2012 9:18 am
Contact:

Re: Uploading files

Post by alberto »

Hi rsaucier, thanks for posting your solution!
User avatar
alberto
FormaLms Guru
Posts: 1134
Joined: Fri Mar 02, 2012 9:18 am
Contact:

Re: Uploading files

Post by alberto »

Hi, the mimetypes list has been updated and integrated in Forma 1.0
Post Reply