When IE downloads files with the docx (xlsx, pptx) extension, it automatically changes the extension to zip.

Source: Internet
Author: User

When IE downloads files with the docx (xlsx, pptx) extension, the extension is automatically changed to zip.
When we download files with extensions such as dotx, docx, pot, xlsx, and pptx from a Web server such as IIS or Tomcat through a binary stream, if the downloaded files become zip files, in IE, if the MIME with the corresponding suffix cannot be found, the object type is automatically determined based on the data stream, microsoft has processed the Office2007 format completely different from the previous one.
Previous Office documents were in the binary format of 100%. Third-party tools are very inconvenient to operate, while Office2007 is based on XML format as a whole. This does not mean that Office2007 documents can be saved in XML format. The default document format of Office2007 is XML (Word docx and Excel xlsx ). Docx is essentially a zip file with a series of xml, directories, and other files. If we change docx to zip. You can use software such as winzip to unbind it. For this reason, it is automatically recognized as a ZIP file when there is no corresponding Office2007 type in MIME.

To solve this problem, we need to make changes on the Server side, that is, the computer on our client side is no problem.

Solution:

Open the IE 9 browser and click "tools-Internet Options-security-Trusted Sites-Custom Level-others-enable MIME profiling (IE8: open files based on content instead of file extensions, if IE is traditional: Miscellaneous-enable the file based on the content instead of the sub-file name) ", set it to" disabled ". (Open files based on content, not file extension ).



From brian0031

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.