Applied on: Windows (ASP) Hosting accounts

 

There is GUI in websitepanel (control panel) for windows hosting accounts where you can add any MIME type for your website. Here we illustrate how you can do this by using web.config file.

 

We have many common MIME type settings in our server by default, but not all of them. If the one you need is not set by default, you can set it yourself in your web.config file, here is the sample

<
configuration>
 
    <system.webServer>
 
        <staticContent>
 
           <mimeMap fileExtension=".test" mimeType="video/mp4" />
 
       </staticContent>
 
    </system.webServer>
 
</configuration>
 
 
 
 Here you need to replace "mimeMapfileExtension" parameter with the value of your require file extension. Also remember to replace "mimeType" parameter with the corresponding MIME type.