Monday, August 2, 2010

Adding MIME types in IIS / Plesk, Office 2007 MIME types

Adding MIME type in IIS
--------------------------

- Open IIS --> right click Local Computer Name --> Properties
- Click 'MIME Types'
- Click 'New'
- In the Extension box, type the file name extension that you wan, eg: docx
- In the MIME Type box, provide the appropriate description --> Apply the settings
- Restart the web service or you may need to 'Recycle' the application pool.

Normally it works as soon as the MIME type is added


Adding MIME type in Plesk (Windows)
----------------------------------------

- Log in to your Plesk Panel
- Select the domain --> Click "Web Directories" (If you wish you can choose a virtual directory)
- Select the MIME Types tab
- Type the filename extension in the Extension field. File name extension should begin with a dot (.), or a wildcard (*) to serve all files regardless of file name extension.
- Specify the file content type in the Content field.
- You can either select the appropriate value from the list or define a new content type. To do this, select Custom... and enter the content type in the input box provided.
- Click OK to finish the creation.


MS Office 2007 MIME Types
------------------------------

.docx -- application/vnd.openxmlformats-officedocument.wordprocessingml.document
.docm -- application/vnd.ms-word.document.macroEnabled.12
.dotx -- application/vnd.openxmlformats-officedocument.wordprocessingml.template
.dotm -- application/vnd.ms-word.template.macroEnabled.12
.xlsx -- application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
.xlsm -- application/vnd.ms-excel.sheet.macroEnabled.12
.xltx -- application/vnd.openxmlformats-officedocument.spreadsheetml.template
.xltm -- application/vnd.ms-excel.template.macroEnabled.12
.xlsb -- application/vnd.ms-excel.sheet.binary.macroEnabled.12
.xlam -- application/vnd.ms-excel.addin.macroEnabled.12
.pptx -- application/vnd.openxmlformats-officedocument.presentationml.presentation
.pptm -- application/vnd.ms-powerpoint.presentation.macroEnabled.12
.ppsx -- application/vnd.openxmlformats-officedocument.presentationml.slideshow
.ppsm -- application/vnd.ms-powerpoint.slideshow.macroEnabled.12
.potx -- application/vnd.openxmlformats-officedocument.presentationml.template
.potm -- application/vnd.ms-powerpoint.template.macroEnabled.12
.ppam -- application/vnd.ms-powerpoint.addin.macroEnabled.12
.sldx -- application/vnd.openxmlformats-officedocument.presentationml.slide
.sldm -- application/vnd.ms-powerpoint.slide.macroEnabled.12
.one -- application/onenote
.onetoc2 -- application/onenote
.onetmp -- application/onenote
.onepkg -- application/onenote
.thmx -- application/vnd.ms-officetheme