Add mime type in tomcat to prevent IE from opening binary files instead of downloading

Not sure why tomcat doesn't have .iso and .msi mime types in web.xml. And smart Microsoft IE doesn't do a great job in file download without proper http header, it actually opens .msi and .iso and display it. In order to help IE download the binaries probably.(Note that, it works fine on Firefox and Safari). You have to explicitly add the mime type in your tomcat. To do this, simply add



iso
application/octet-stream



in the $CATALINA_HOME/conf/web.xml (or your webapp's web.xml)

Comments (0)

Post a Comment