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...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...Know the answer? Post it. Somebody with the same question will find it here.
Mahesh ChandRank #1 · 393K pointsPosted May 30, 2011, 5:43 AM EDT
Former memberPosted May 30, 2011, 5:47 AM EDT
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.