leven.steve
Posts: 0
Joined: Sun Mar 04, 2012 4:01 pm

How do I add allowable MIME types to my web app project?

I need to allow the following MIME types for some font files I have uploaded. This is what I would need to do on an IIS server as an example. How do I do this in my project to allow these files?

(I have replace angle brackets with square ones to prevent the HTML being lost)

[system.webServer]
[staticContent]
[mimeMap fileExtension=".ttf" mimeType="application/octet-stream" /]
[mimeMap fileExtension=".woff" mimeType="application/font-woff" /]
[mimeMap fileExtension=".woff2" mimeType="application/font-woff" /]
[/staticContent]
[/system.webServer]

Return to “Issues”