Adding MIME types

Make your content more browser-friendly with custom MIME types

C1 CMS supports a number of MIME types for files of various types (extensions) , including those defined in .NET Framework by default.

If you want a specific MIME type for a specific file extension, add it in web.config under configuration/system.webServer/staticContent with the <mimeMap/> element where you specify the file extension and the MIME type in the respective attributes.

<configuration>
  <!-- ... -->
  <system.webServer>
    <!-- ... -->
    <staticContent>
      <!-- ... -->
      <mimeMap fileExtension=".flv4" mimeType="video/mp4"/>
    </staticContent>
  </system.webServer>
</configuration>

For more information on adding MIME types on IIS 7, please see "Add a MIME Type (IIS 7)".

To make sure that there is no collision between an already defined MIME type for the file extension and your own definition, use <remove/> before <mimeMap/> to remove the default MIME map if any.

<remove fileExtension=".flv4" />
<mimeMap fileExtension=".flv4" mimeType="video/mp4"/>