Use MIME type
Multipurpose Internet mail exchange (MIME) type description Web browser or mail applicationProgramHow to process files received from the server. For example, when a web browser requests a project on the server, it also requests the MIME type of the object. Some MIME types (examples) can be displayed in the browser. Other MIME types (such as text processing documents) need to be displayed by external help applications.
When IIS sends an email message to the mail application or the webpage to the client web browser, IIS also sends the MIME type of the transmitted data. If an additional or embedded file is transmitted in a specific format, IIS notifies the client application of the MIME type of the embedded or attached file. Then the client application knows how to process or display the data that is being received from IIS.
IIS only provides services for files with extensions registered in the MIME type list, and allows you to configure other MIME types and change or delete MIME types.
IIS pre-configuration is the default setting for Recognizing global MIME types. All websites you create in IIS can recognize these MIME types. MIME types can also be defined on websites and directories independently of other or globally defined types. When viewing MIME types at the website or directory level, only the types corresponding to this level are displayed, not all types inherited from the previous level. If the same MIME type is applied at the global level after the MIME type is modified at a lower level, the Global MIME type will overwrite the modified MIME type at a lower level.
If the client request references a file extension whose extension is not defined in the MIME type, IIS returns a 404.3 error. By adding the wildcard (*) MIME type, you can also configure IIS to provide services to all files, regardless of the file extension.
Important you must be a member of the Administrators group on the local computer or be granted permissions to perform the following steps. As the best security operation, log on to your computer using an account that is not in the Administrators group, and run the command as an administrator to run IIS manager. At the command prompt, type RunAs/User: administrative_accountname "MMC % SystemRoot % \ system32 \ inetsrv \ IIS. msc ".
Add global MIME type
In IIS manager, expand the local computer, right-click the computer to which you want to add the MIME type, and click Properties ".
Click the MIME type tab.
Click new ".
In the extension box, type the file extension.
In the MIME type box, type a description that exactly matches the file type defined on the client computer.
Note that you can also create a MIME type for a file without an extension or undefined MIME type. To complete this operation, type an asterisk (*) In the "extension" box and application/octet-stream in the "MIME type" box.
Click OK ".
Add the MIME type to a website or directory
In IIS manager, right-click the website or website directory for which you want to add MIME types, and click "properties ".
Click the HTTP header tab.
Click "MIME type ".
Click new ".
In the extension box, type the file extension.
In the MIME type box, type a description that exactly matches the file type defined on the client computer. If you define a MIME type that has been defined at a higher level, the system will prompt you to select the level at which this mime type should reside.
Click OK ".
Displays the relationship between the MIME type defined in IIS and the file type defined on the client computer.
Delete the MIME type from a website or directory
In IIS manager, right-click the website or website directory from which you want to delete MIME types and click "properties ".
Click the HTTP header tab.
Click "MIME type ".
From the registered MIME type list, click the MIME type to be deleted, and then click Delete ".
Click OK ".
For example:
To add the *. ISO file as downloadable, follow these steps,
In IIS manager, right-click the website or website directory for which you want to add MIME types, and click "properties ".
Click the HTTP header tab.
Click "MIME type ".
Click new ".
In the extension box, type the file extension:. ISO.
In the MIME type box, type ISO file
Click OK ".