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

Moodle 2.3 Treats Pub files as Word files (sets as Word MIME Type)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.3.1, 2.6.1
    • Fix Version/s: None
    • Component/s: Filepicker, Files API
    • Labels:
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_23_STABLE, MOODLE_26_STABLE

      Description

      When we upload Publisher files (.pub) they are being treated by Moodle as Word files which in turn creates issues when students try to download them, and Word attempts to open them.

      • Moodle displays the Word Icon for the Publisher File Type
      • Moodle stores in mdl_files a Publisher file with mime_type application/msword rather than application/vnd.ms-publisher. File name in mdl_files displays as "whatever.pub".

      Adjusting the mime type in the database to Publisher's fixes the issue (however the Word icon still displays) but the file will download fine.

      Please advise how to resolve this or if this issue will be fixed.

      I have checked that the MIME type is correctly listed in IIS 7.5 MIME List.

      Running the latest build of Moodle 2.3 on Windows Server 2008 on IIS 7.5 using PHP 5.3.13.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              adam12 Adam Waterfield
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Matteo Scaramuccia, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: