cancel
Showing results for 
Search instead for 
Did you mean: 

Add docx mime type to Alfresco v2.1.0

jfeyen
Champ in-the-making
Champ in-the-making
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
3 REPLIES 3

jfeyen
Champ in-the-making
Champ in-the-making
Can somebody help me on this?

Thanks

Joeri

mrogers
Star Contributor
Star Contributor
Do you think the mimetype is wrong?  Or do you think there's a problem with your I.E. settings?  

First thing to check is the mimetype of your content property in alfresco.

jfeyen
Champ in-the-making
Champ in-the-making
Hi Mr. Rogers,

The content type is :
Content Type: Octet Stream
   Encoding: UTF-8

I has something to do with the mimetype of the server. If I open files from other webservers with docx it works.
So it has nothing to do with IE.

Thanks

Joeri