
Adding Additional MIME Types
Whenever content is returned from a web server it includes a MIME Content Type header, which provides information to the client about the type of data which is being returned. Using this header the client is able to determine the best way to handle the content, which may include opening a helper application. For files returned directly from the server the MIME type is defined by the extension of the file.
The following table shows some MIME type examples:
| Type / Subtype | File Extension |
|---|---|
| application/msword | doc |
| application/pdf | |
| video/mpeg | mpeg |
| video/x-flv | flv |
| audio/mpeg | mp3 |
| image/jpeg | jpg |
| text/html | html |
Net24 has a predefined server wide list of common MIME types configured on Windows IIS and Unix Apache servers. However if you have files on your site for which a MIME type is not defined, the content of these files may not be displayed correctly by the client.
The predefined list can not be modified, but additional MIME types can be easily added to individual site following the instructions below:
AddType application/x-shockwave-flash swf
The AddType tells the server to add a new MIME type. The application/x-shockwave-flash is the actual MIME type and the swf is the extension of the file. You can add as many MIME types as required, simply repeat the line for each MIME type.
|
Browse Space |
Explore Confluence |
Your Account |
Add Content |
|
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.8 Build:#814 Oct 02, 2007) |