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

If you upload an Office 2007 document to moodle 1.9.2, the file downloads as the <Office 2003 file type

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.8.8, 1.9.4
    • 1.7.6, 1.8.7, 1.9.3
    • Files API
    • None
    • Redhat Linux Enterprise 5, PHP 5.1.6, MySQL 5.0.45
    • MySQL
    • MOODLE_17_STABLE, MOODLE_18_STABLE, MOODLE_19_STABLE
    • MOODLE_18_STABLE, MOODLE_19_STABLE

      If you upload an Office 2007 document to moodle and attempt to download it. Example being Word 2007 .DOCX file, it sends the file as .DOC, stripping the .DOCX file type. Here are the actual Office 2007 MIME Types that I had to specify in filelib.php and a copy of the filelib.php that works on multiple sites. Reference http://moodle.org/mod/forum/discuss.php?d=102716.

      application/onenote onetoc onetoc2 onetmp onepkg
      application/vnd.ms-excel.addin.macroEnabled.12 xlam
      application/vnd.ms-excel.sheet.binary.macroEnabled.12 xlsb
      application/vnd.ms-excel.sheet.macroEnabled.12 xlsm
      application/vnd.ms-excel.template.macroEnabled.12 xltm
      application/vnd.ms-powerpoint.addin.macroEnabled.12 ppam
      application/vnd.ms-powerpoint.presentation.macroEnabled.12 pptm
      application/vnd.ms-powerpoint.slide.macroEnabled.12 sldm
      application/vnd.ms-powerpoint.slideshow.macroEnabled.12 ppsm
      application/vnd.ms-powerpoint.template.macroEnabled.12 potm
      application/vnd.ms-word.document.macroEnabled.12 docm
      application/vnd.ms-word.template.macroEnabled.12 dotm
      application/vnd.openxmlformats-officedocument.presentationml.presentation pptx
      application/vnd.openxmlformats-officedocument.presentationml.slide sldx
      application/vnd.openxmlformats-officedocument.presentationml.slideshow ppsx
      application/vnd.openxmlformats-officedocument.presentationml.template potx
      application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx
      application/vnd.openxmlformats-officedocument.spreadsheetml.template xltx
      application/vnd.openxmlformats-officedocument.wordprocessingml.document docx
      application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx

        1. filelib.php
          46 kB
        2. filelib.php
          46 kB

            stronk7 Eloy Lafuente (stronk7)
            digitalmess Aaron Cowell
            Votes:
            13 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

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