by   January 28 2015   
Missing mime type .svg / image And font/ttf ttf; and font/opentype otf; and application/font-woff woff; and application/vnd.ms-fontobject eot; Ok, you get it, this is how you can add MIME TYPE to your IIS server and get the dang thing running smoothly again.

Missing your Mime Type?

When I was setting up PHP on IIS to test the OwnCloud CMS package I noticed that I was missing my Mime for an image type.

Here's how to add a MIME TYPE in IIS 7.x

.SVG image isn't set in the MIME TYPE.

Go to the IIS folder then from Category View look for MIME Types.

Look down the list for .svg

You're not going to see it if under your IIS it shows svg as a document file.

Add the .svg extension without the period. (svg)

MIME TYPE image/svg+xml

That's it, you'll now see the images.

If you are using some of the great bootstrap templates sold online you might need to register the following as well to make it all work in IIS servers.

fontawesome-webfont.woff

You can use websites like gtmetrix.com to test your settings. I really appreciate their work. 

Add the woff as MIME: application/font-woff

Here's some of the best from the page linked below. 

font/ttf ttf;
font/opentype otf;
application/font-woff woff;
application/vnd.ms-fontobject eot;

By DEFAULT the EOT font is set to application/octet-stream . 
I have changed it to the above application/vnd.ms-fontobject.
If you have issues with it please tell the stack overflow people or me and I'll tell them.

Actually in IIS these are your standard default settings. 

.ttf = application/octet-stream
.otf = not listed so I added application/octet-stream

The .ttf and .otf standards should be in place from what I read but because I haven't found it to be 100% because the MS 2008 Server listed it as a octet-stream I'm going to keep it that way until I see the update in KB MS.

.woff = application/x-font-woff

Changed .eot from application/octet-stream to application/vnd.ms-fontobject

If I have any issues I'll post them.


 

Some more information from StackOverFlow.Com

Using the application/octet-stream will get the job done but it's not how you as a good admin and developer should use the MIME. When we know Application / Font-Woff targets the .woff extension let's leave the octet-stream MIME for those uploads we love to do with media of different types. I use the octet-stream to process images of different extensions so it doesn't error when some graphics developer comes up with a new style. 

Some images that might help you but if you're not sure where the MIME is set look in the IIS Main ROOT connection. It will be MACHINE or SERVER Name / YOUR LOGIN  

IIS_7_MIME_TYPE

Missing mime type .svg / image And font/ttf ttf; and font/opentype otf; and application/font-woff woff; and application/vnd.ms-fontobject eot; Ok, you get it, this is how you can add MIME TYPE to your IIS server and get the dang thing running smoothly again.