Stop IE8 renaming files to .zip when downloading?

We have some documents on our internet server, which stand zip documents yet are made use of by an additional program as information documents. Nonetheless, when downloading and install these documents (by clicking an href link) with Internet Explorer 8 they get relabelled to *. zip so they are no more related to the proper program.

Exists something I can do on our webserver, or the html of the download web page, that will stop IE from relabeling these documents?

FireFox and also Chrome leave the documents with its initial name, so does not have this trouble.

2022-06-07 14:34:31
Source Share
Answers: 3

Are you making use of IE8 to download it? If so you require to add the website to the relied on website checklist in IE8 for it to download and install effectively.

2022-06-07 14:55:18

Appearently Internet Explorer 8 complies with the MIME type defined by the web server for protection factors when calling a documents.

You can attempt to configure your web server is mime kinds and also add 'xyz' (change with your documents expansion) or to deactivate this actions in Internet Explorer 8:

    Internet Options -> Security Settings
       "Custom Level" -> Miscellaneous section: 
       Open files based on content, not file extension
2022-06-07 14:54:08

First some history.

Your internet server is establishing that the documents is a legitimate ZIP archive by utilizing some MIME magic. So it supplies the HTTP feedback with the adhering to header:

Content-Type: application/zip

When IE8 obtains the documents it has actually currently been informed that it is a ZIP. After that, when in it is default protection setup of "Open files based upon web content, not submit extension", it seeks out a marked expansion for that web content type from the computer system registry at HKEY_CLASSES_ROOT\MIME\Database\Content Type.

There are a number of manner ins which you can strike this. You can modify either of both variables on the neighborhood equipment over. Yet I absolutely would not advise transforming neighborhood equipment setups any place feasible - it is hackish and also will not scale. The most effective remedy would certainly be to modify the internet server either by:

  • Setting up a fixed MIME declaration for the documents is initial expansion to be sent out as application/octet-stream. This will certainly motivate the documents to be supply as straight binary, without web content details.

  • Offering the files with the header Content-Disposition: attachment which will certainly create IE to value the filename defined by the internet server. This might not be so straightforward relying on your system though.

2022-06-07 14:53:56