-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
2.3.2
-
None
-
MOODLE_23_STABLE
One of our users recently started experiencing a problem where she can no longer upload powerpoint or word files to her Moodle course. When she tries, she gets the error like "Powerpoint presentation filetype cannot be accepted."
I was able to get my hands on one of the files, and using the linux file command ("file --mime-type -b <filename>", was able to retrieve the mime-type from the file, which is being reported generically as "application/vnd.ms-office"
I looked in the lib/filelib.php file, and Moodle does not have that MIME type listed.
However, there are a number of powerpoint and word mime types listed in there already, and the extension of this file (ppt) is already listed as "application/vnd.ms-powerpoint", and I didn't see any duplicate file extensions listed.
As a result of this, I didn't know how to format the mime-type entry in the file.
- duplicates
-
MDL-37853 Error on upload: word document filetype cannot be accepted
-
- Closed
-