Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-1231

Allow uploading Microsoft Office 2007+ generated files

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2.1-B2
    • Component/s: File Uploader
    • Labels:
      None
    • Change Log Group:
      Fixed
    • Change Log Message:
      It wasn't possible to upload Microsoft Office 2007+ generated files (e.g. xlsx).
    • Story Points:
      1
    • Copy Issue Key:
    • Patch Instructions:

      Patches must be submitted through Phabricator.

      Description

      Currently In-Portal has several problems with new Microsoft Office 2007+ files:

      • don't display proper icon next to uploaded file;
      • sends incorrect "Content-type" header (application/zip).

      Updating missing icons is pretty easy, but make "Content-Type" header right we need to add custom extension to content type mapping in our mime detection function. The following table documents the HTTP MIME types that are available when working with Office 2007 documents:

      Ext MIME Type
      .docx application/vnd.openxmlformats-officedocument.wordprocessingml.document
      .dotx application/vnd.openxmlformats-officedocument.wordprocessingml.template
      .docm application/vnd.ms-word.document.macroEnabled.12
      .dotm application/vnd.ms-word.template.macroEnabled.12
      .xlsx application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
      .xltx application/vnd.openxmlformats-officedocument.spreadsheetml.template
      .xlsm application/vnd.ms-excel.sheet.macroEnabled.12
      .xltm application/vnd.ms-excel.template.macroEnabled.12
      .xlam application/vnd.ms-excel.addin.macroEnabled.12
      .xlsb application/vnd.ms-excel.sheet.binary.macroEnabled.12
      .pptx application/vnd.openxmlformats-officedocument.presentationml.presentation
      .potx application/vnd.openxmlformats-officedocument.presentationml.template
      .ppsx application/vnd.openxmlformats-officedocument.presentationml.slideshow
      .ppam application/vnd.ms-powerpoint.addin.macroEnabled.12
      .pptm application/vnd.ms-powerpoint.presentation.macroEnabled.12
      .potm application/vnd.ms-powerpoint.template.macroEnabled.12
      .ppsm application/vnd.ms-powerpoint.slideshow.macroEnabled.12

      We need to map all these, because they won't be in RFC controlled mime file installed on every server due "vnd" (vendor) word in mime type.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Alex
                Reviewer:
                Dmitry Andrejev [Intechnic]
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: