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

Add support for MS office template documents (xlt, xltx, dot, dotx, pot, potx) download

    XMLWordPrintable

Details

    • Unknown

    Description

      On IE, downloading MS office template documents is considered as zip files. Same issue has already been resolved for normal office documents. To fix this for template documents, we would need to update web.xml file by adding the following :

        <mime-mapping>
          <extension>dot</extension>
          <mime-type>application/msword</mime-type>
        </mime-mapping>
        <mime-mapping>
          <extension>xlt</extension>
          <mime-type>application/vnd.ms-excel</mime-type>
        </mime-mapping>
        <mime-mapping>
          <extension>pot</extension>
          <mime-type>application/vnd.ms-powerpoint</mime-type>
        </mime-mapping>
        <mime-mapping>
          <extension>dotx</extension>
          <mime-type>application/vnd.openxmlformats-officedocument.wordprocessingml.template</mime-type>
        </mime-mapping>
        <mime-mapping>
          <extension>xltx</extension>
          <mime-type>application/vnd.openxmlformats-officedocument.spreadsheetml.template</mime-type>
        </mime-mapping>
        <mime-mapping>
          <extension>potx</extension>
          <mime-type>application/vnd.openxmlformats-officedocument.presentationml.template</mime-type>
        </mime-mapping>
      

      This has been tested ok on a XEM 2.5.1 (windows server / Apache Tomcat 6) and XE 3.2 (windows / jetty).

      Attachments

        Issue Links

          Activity

            People

              sdumitriu Sergiu Dumitriu
              tcamberlin Thibaut Camberlin
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: