Drag-and-Drop upload sets incorrect mimeType for Office 2007 and 2010 documents

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • 4.1.2
    • Affects Version/s: 3.5.13, 4.0.3
    • Component/s: None
    • Environment:

      All Confluence versions, any Web Browser

      The Javascript plupload.js in confluence-drag-and-drop-1.0.16.jar sets the mimeType variable for Office 2007/2010 documents like so:

      application/vnd.openxmlformats,docx pptx xlsx

      But this isn't a valid MIME type for these documents. instead, it should follow the definitions from Confluence's own mime.types file:

      application/vnd.openxmlformats-officedocument.spreadsheetml.sheet xlsx
      application/vnd.openxmlformats-officedocument.spreadsheetml.template xltx
      application/vnd.openxmlformats-officedocument.presentationml.presentation pptx
      application/vnd.openxmlformats-officedocument.presentationml.slideshow ppsx
      application/vnd.openxmlformats-officedocument.presentationml.template potx
      application/vnd.openxmlformats-officedocument.wordprocessingml.document docx
      application/vnd.openxmlformats-officedocument.wordprocessingml.template dotx

      This causes big problems for CMIS attachment integration and 3rd party previewers.

              Assignee:
              Paul Curren
              Reporter:
              irvingpop2
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: