Showing posts with label tomcat. Show all posts
Showing posts with label tomcat. Show all posts

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

0
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)