How do I add a new file extension / MIME type?
The following article explains how to create a MIME type for a new file extension. MIME types are created in IIS and allow different file extensions to work in a Web browser. For example, if you wish to use Web pages with the .js file extension, you may need to add the application/x-javascript mime type to IIS.
To add a new MIME type, please follow these steps:
- Log into your server through Remote Desktop Connection (instructions for connecting to your server through RDC can be found here).
- Click Start, Programs, Administrative Tools, and select Internet Information Services (IIS) Manager.
- Expand local computer and expand Web Sites.
- Right click the appropriate website entry and select Properties.
- On the HTTP Headers tab click MIME Types.
- Click New.
- Enter the appropriate information:
- Extension - the file type extension.
- MIME type - the type of file this extension refers to (view a list of common MIME types).
- Click Ok.
You may need to restart the IIS service for the MIME type to begin working. To restart the IIS service, please follow these steps:
- Click Start, select Programs, and then click Command Prompt.
- Type iisreset and press Enter. This will stop the IIS service and then restart it.
Note: restarting the IIS service will temporarily suspend the web service and prevent websites from working. The reset should only take around 10 - 30 seconds to complete.




