Wondering how to add the MIME type in IIS? We can help you do it.
The MIME type which uses to find how a particular file type is managed and it indicates the nature and format of a file.
At Bobcares, we often get requests from our customers to add MIME type in IIS as part of our Server Management Services.
Today, let’s get into the details on how our Support Engineers help the customers in adding the MIME type in IIS.
What is MIME Type?
MIME(Multipurpose Internet Mail Extensions) helps identify the type of data. It helps in identifying the nature and format of the document.
MIME format includes a MIME content type and subtype which denotes the type of data in the file.
This tool allows adding the custom MIME types to the site. Normally, the entered custom MIME type will override the default MIME type that exists on the server.
Steps to add MIME Type in IIS?
Recently one of the customers contacted us to add the MIME types in Windows. Let’s discuss how our Support Engineers do it.
1. Firstly we open IIS Manager.
2. In the Features View, we double click on MIME Types.
3. Then in the Actions pane, we click on Add.
4. After that in the Add MIME Type dialog box, we type a file name extension in the File name extension text box and a MIME type in the MIME type text box. Then we click Ok.
If a file extension is already registered as a MIME type, then we do not enter it again in File name extension.
5. After entering the values we click the OK button.
Thus, we add the MIME type in IIS. Sometimes customers receive the error HTTP Error 404.3 – Not Found. One of the reasons for this error is inappropriate MIME mapping. So we add the MIME type according to the above steps.
Adding MIME Type with web.config
We enable the MIME Types in windows by editing the web.config configuration file in the site’s home directory.
<configuration>
<system.webServer>
<staticContent>
<mimeMap fileExtension=" " mimeType=" " />
<mimeMap fileExtension=" " mimeType=" " />
</staticContent>
</system.webServer>
</configuration>
We provide a file name extension in the fileExtension and a MIME type in the mimeType. After adding the code in the web.config configuration file, we save the file.
[Need more assistance to add MIME type in IIS – We can help you with it.]
Conclusion
In short, we’ve discussed the details of Multipurpose Internet Mail Extensions in windows. Also, we have discussed how our Support Engineers add the MIME type in the IIS.
0 Comments