Howto add a MIME type to IIS – broken download links when using IIS

Sometimes you´ll find yourself in the situation that users complain about broken download links on your website but you can´t figure out why. Because the files are there, the links are good and the webserver is working fine as well.

If your webserver is an IIS (Microsoft Internet Information Services) then it probably misses the MIME type for the file to download.

So here´s the solution:

  1. Log onto your server and start the internet information services manager (IIS manager)
  2. Select your server from the connections panel on the left and double click MIME-Type in the IIS section of the panel on the right
  3. Now you can see all the MIME-Types that are already registered and known to the server
  4. Scroll down to see if your extension is already registered (e.g. “.7z” for the 7z compression standard)
  5. If your extension is already listed there, then this is not the solution for your problem. Sorry !
  6. If your extenion is not listed there then do a right click somewhere and choose “Add” from the menu
  7. Enter the extenion – for 7z it would be “.7z”, for ISO image it would be “.iso”
  8. Now enter the MIME-Type depending on what extension you want to register. For 7z it would be “application/x-7z-compressed” and for ISO it would be “application/octet-stream”.
  9. Test your download links – if it works, good. If not you have to restart your IIS.
  10. You´re done !

See the screenshots below to see what to do and where. They are from a german version of IIS, but the general structure is the same as in the english version.