Zip Files Downloaded from IIS Hosted Site and/or SharePoint Site

We had a problem on our Web server: whenever a user tried to download a ZIP file from a SharePoint Services site, or from a normal site, they received an error of this type: "The Compressed (zipped) Folder is invalid or corrupted".

To correct the issue we have used this advice (from http://ziprepairsoftware.blogspot.com/2008/02/problems-with-zip-compression-in-iis.html):

You may face this problem if HTTP compression has been turned on in the Web Sites properties of Microsoft Internet Information Services (IIS) on the SharePoint virtual server. When you download a .ZIP file, IIS may encode the file as GZIP (GNU Zip).

To solve this problem, you need to modify MIME (Multipurpose Internet Mail Extensions) type for the .ZIP file from application/x-zip-compressed to the application/oclet-stream. To modify MIME type, please follow these steps:

  1. Click on Start, point to Administrative Tools, and then click on Internet Information Services (IIS) Manager.
  2. Right-click on the server (local computer) tree, where server (local computer) is the name of your IIS server, and then click on Properties.
  3. Click on MIME Types.
  4. Scroll down to the registered MIME type list to find the .zip entry.
  5. Click on the .zip application/x-zip-compressed entry, and then click Edit.
  6. Modify the MIME type value to application/octet-stream.
  7. Then Stop and then restart the IIS Admin Service to apply the change to the MIME type.

About Sorin Dolha

My passion is software development, but I also like physics.
This entry was posted in Computers and Internet. Bookmark the permalink.

Add a reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s