Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-38263

Office document not uploadable, Moodle gives error "Powerpoint presentation filetype cannot be accepted."

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 2.3.2
    • Resource
    • 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.

            danmarsden Dan Marsden
            smily03 Chris Myers
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.