AnsweredAssumed Answered

Add docx mime type to Alfresco v2.1.0

Question asked by jfeyen on Feb 22, 2012
Latest reply on Feb 28, 2012 by jfeyen
Hi,

When docx and other office document are openend with Internet Explorer they will open a .zip file. In firefox it works.
I changed first on Alfresco level then on Tomcat level. None of this helps:

opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/mimetype# vi openoffice-document-formats.xml
<!– Addition 22 feb 2012 –>


  <document-format><name>Microsoft Word 2007</name>
    <family>Text</family>
    <mime-type>application/vnd.openxmlformats-officedocument.wordprocessingml.document</mime-type>
    <file-extension>docx</file-extension>
    <export-filters>
      <entry><family>Text</family><string>MS Word 97</string></entry>
    </export-filters>
  </document-format>

  <document-format><name>Microsoft Excel 2007</name>
    <family>Spreadsheet</family>
    <mime-type>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</mime-type>
    <file-extension>xlsx</file-extension>
    <export-filters>
      <entry><family>Spreadsheet</family><string>MS Excel 97</string></entry>
    </export-filters>
  </document-format>

  <document-format><name>Microsoft Powerpoint 2007</name>
    <family>Presentation</family>
    <mime-type>application/vnd.openxmlformats-officedocument.presentationml.presentation</mime-type>
    <file-extension>pptx</file-extension>
    <export-filters>
      <entry><family>Presentation</family><string>MS PowerPoint 97</string></entry>
    </export-filters>
  </document-format>

opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/mimetype# vi mimetype-map.xml
<!– Addition 22 feb 2012 –>

        <mimetype mimetype="application/vnd.openxmlformats-officedocument.presentationml.presentation" display="Microsoft PowerPoint 2007">
            <extension>pptx</extension>
        </mimetype>
      <mimetype mimetype="application/vnd.openxmlformats-officedocument.wordprocessingml.document" display="Microsoft Word 2007">
            <extension>docx</extension>
        </mimetype>
   <mimetype mimetype="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" display="Microsoft Excel 2007">
            <extension>xlsx</extension>
        </mimetype>

opt/alfresco/tomcat/conf# vi web.xml

<!– Addition 22 feb 2012 –>
        <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>

Can somebody help me with this?

Joeri

Outcomes