Pages

Monday, August 24, 2009

How to Add Mime type

You can also configure IIS to serve undefined file types by adding a wildcard character (*) MIME type. Do not use wildcard MIME-types on production servers.

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

2. Click the HTTP Headers tab.

3. Click MIME Types and Click New.

5. In the Extension box, type the file name extension.

6. In the MIME type box, type a valid MIME type. If you define a MIME type that has already been defined at a higher level, you are prompted to select the level where the MIME type should reside.

To create a MIME type for an undefined MIME type, type an asterisk (*) in the Extension box, and type application/octet-stream in the MIME type box.

To create a MIME type for a file without an extension, type a period (.) in the Extension box, and type your MIME type in the MIME type box.

7. Click OK.

No comments:

Post a Comment