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

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Trivial
    • 2.4 M2
    • 2.4 M1
    • None
    • Unknown

    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

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

            Dates

              Created:
              Updated:
              Resolved: