Wednesday, July 08, 2009

Zip file download problem with IE

There is a zip file download button in our application for sometime. Recently to make the browsers identify the file, we set the content type as "application/zip". Which is correct according to the standard[1]. But we found that the file downloaded with IE seem to be corrupted. While trying to investigate the issue, we were absolutely clueless on how to go about this problem. FF and some download managers with IE also seem to be downloading the file properly! After quite some frustrating hours of debugging we replaced the content type with generic: "application/octet-stream". And IE seem to understand this finally.

1. http://www.iana.org/assignments/media-types/application/zip

No comments: