tags:

views:

16

answers:

1

i have a .zip file sitting on an IIS 6 webserver.

i have an html file with a link to that zip file like this:

<a href="file.zip">Download File</a>

When you open the page and click the link in firefox or chrome, you get the Open or Save dialog box as expected.

When you do the same in Internet Explorer 8, you navigate to a new page that displays the "contents" of the zip file as text (unreadable characters). This happens on at least 3 machines that were tested.

Any idea why this would be happening in IE or what i need to do to fix it?

Changing IE settings is not an option since we do not control the settings of who goes to our site. Changing the HTML or javascript on the page with link is an option.

Thanks for the help!

A: 

You may need to set the MIME type of the file. To do so, go to IIS6 Manager for the website. Go to Properties for the site (right-click on the website name for Properties in the menu). Click the HTTP Headers tab. Click the MIME Types... button.

From there, you should be able to add .zip as an extension. I'm not entirely sure which MIME type will work best, but application/zip and application/x-zip are two options to try.

Andrew
the mime type was the default - application/x-zip-compressed, changing it to application/x-zip fixed it. HOWEVER, i needed to add this mime type to the *web site* configuration. modifying the .zip mime type at the root IIS level (SERVER_NAME (local computer)) did not make a difference (when no mime types were specified on the website)
jaminto