New ways to download file types in IIS6 _win server

Source: Internet
Author: User
Tags mail exchange
Using MIME types

The Multipurpose Internet Mail Exchange (MIME) type describes how a Web browser or mail application handles files received from the server. For example, when a Web browser requests an item on a server, the MIME type of the object is also requested. Some MIME types, such as graphics, can be displayed inside the browser. Other MIME types, such as word processing documents, need to be displayed using an external help application.


When IIS passes mail messages to the mail application or passes the Web page to the client Web browser, IIS also sends the MIME type of the data that is passed. If additional or embedded files are passed in a specific format, IIS notifies the client application to embed or attach the MIME type of the file. The client application then knows how to process or display data that is being received from IIS.


IIS provides services only for files that have extensions registered in the MIME type list, and also allows you to configure additional MIME types and to change or remove MIME types.


IIS is preconfigured to recognize the default settings for global MIME types. These MIME types are recognized by all Web sites that you create in IIS. MIME types can also be defined at the site and directory level, independent of other or globally defined types. When you view MIME types at the site or directory level, only the type that corresponds to this level is displayed, not all types inherited from the previous level. If the MIME type is modified at a lower level and the same MIME type is applied at the global level, the MIME type at the global level overrides the MIME type modified at the lower level.


If a client request references a file name extension whose extension is not defined in the MIME type, IIS returns a 404.3 error. By adding the wildcard character (*) MIME type, you can also configure IIS to service all files, ignoring the file name extension.


Important You must be a member of the Administrators group on the local computer or you must be delegated the appropriate permissions to perform the following steps. As a security best practice, log on to the computer using an account that is not part of the Administrators group, and then run IIS Manager as an administrator using the Run as command. 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 a MIME type, and click Properties.

Click the MIME Type tab.

Click New.

In the Extension box, type the file name extension.

In the MIME type box, type a description that exactly matches the file type defined on the client computer.

Note You can also create MIME types for files without an extension or an undefined MIME type. To do this, type an asterisk (*) in the Extension box, and type Application/octet-stream in the MIME type box.


Click OK.


To add a MIME type to a Web site or directory



In IIS Manager, right-click the Web site or site directory for which you want to add a MIME type, and click Properties.

Click the HTTP Headers tab.

Click MIME type.

Click New.

In the Extension box, type the file name 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 is already defined at a higher level, you are prompted to select the level at which this MIME type should reside.

Click OK.

The following illustration shows the relationship between the MIME types defined in IIS and the file types defined on the client computer.



Remove a MIME type from a Web site or directory



In IIS Manager, right-click the Web site or site directory from which you want to remove the MIME type, and click Properties.

Click the HTTP Headers tab.

Click MIME type.

From the registered MIME type list, click the MIME type that you want to delete, and then click Delete.

Click OK.

Such as:


To increase *. The ISO file is downloadable and the procedure is as follows,



In IIS Manager, right-click the Web site or site directory for which you want to add a MIME type, and click Properties.

Click the HTTP Headers tab.

Click MIME type.

Click New.

In the Extension box, type the file name extension:. iso.

In the MIME type box, type ISO File

Click OK.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.