Skip to content

How to downloading docx, xlsx and pptx

kieky bouvier

Asked May 30, 2011, 5:41 AM EDT2 answers
Share
LinkedInX
Code
Whenever i download docx, xlsx ar pptx files from IE, IE will save them as a zip file. 
whats wrong? can u help me? 
thanks...

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • Mahesh Chand
    0
    Where are you downloading them? Can you put the hyperlinks here? May be this is how they were uploaded. We want to check them.
    0
  • 0
    Check the MIME type details in your web server?

    When these files are downloaded by the Internet Explorer from a webserver, the extension of the file may be changed to "zip". (To open this file, you just need to change the extension to the correct one)

    This problem can be fixed at the webserver level by adding the MIME type of the new extensions.


    One way to solve that problem is just adding the following lines in the web.xml config file to recognize the .docx format :

    <mime-mapping>
    <extension>dib</extension>
    <mime-type>image/bmp</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>doc</extension>
    <mime-type>application/msword</mime-type>
    </mime-mapping>
    <mime-mapping>
    <extension>docx</extension>
    <mime-type>application/msword</mime-type>
    </mime-mapping>

    <mime-mapping>
    <extension>dtd</extension>
    <mime-type>text/plain</mime-type>
    </mime-mapping>





    Hope this helps you.
    0