Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-5306

Default out-of-the-box support for downloading MS office attachments on all servlet containers

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.4 M1
    • Fix Version/s: 2.4 M2
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      The following will be added to web.xml:

        <!-- MS Office mime mappings. We add these to provide out-of-the-box support for downloading Office files as
             attachments. This is for convenience as this is normally a Servlet Container set up but some containers
             do not have these defined by default. For docx/ppt/xlsx this means they will be recognized by IE as zip
             files. See http://littletechthoughts.blogspot.com/2009/01/ie-changes-docx-xlsx-pptx-to-zip-while.html
             for more details. -->
        <mime-mapping>
          <extension>doc</extension>
          <mime-type>application/msword</mime-type>
        </mime-mapping>
        <mime-mapping>
          <extension>xls</extension>
          <mime-type>application/vnd.ms-excel</mime-type>
        </mime-mapping>
        <mime-mapping>
          <extension>ppt</extension>
          <mime-type>application/vnd.ms-powerpoint</mime-type>
        </mime-mapping>
        <mime-mapping>
          <extension>docx</extension>
          <mime-type>application/vnd.openxmlformats-officedocument.wordprocessingml.document</mime-type>
        </mime-mapping>
        <mime-mapping>
          <extension>xlsx</extension>
          <mime-type>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</mime-type>
        </mime-mapping>
        <mime-mapping>
          <extension>pptx</extension>
          <mime-type>application/vnd.openxmlformats-officedocument.presentationml.presentation</mime-type>
        </mime-mapping>
      

        Attachments

          Activity

            People

            • Assignee:
              vmassol Vincent Massol
              Reporter:
              vmassol Vincent Massol
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: