All project content is available for reading, but you need to be a member of the project for Subversion checkout of source code, or to create/modify any information.
Login if you are a member. Apply here to request membership (open to all).

Table of Contents

    Mime Type Registration Module

    A module for registering additional mime types for EPiServer CMS 4 sites.


    When using virtual file systems (also called unified file systems) in EPiServer CMS 4, the number of mime types registered by EPiServer is limited, which makes EPiServer return a generic mime type for file types that are not known. For an example, Office 2007 file types (docx etc.)

    A virtual file system in this respect is one that is not located below the site root in IIS, but mapped (through web.config) with virtualShare="true" on the unified file system handler.

    This module adds additional mime types to the existing ones, through a separate config section.

    Note! This module is not needed in EPiServer CMS 5.


    Download the .dll file or check out the source code and build the latest version. Copy the .dll file to the /bin directory of your site. Configure the module according to the configuration section below.

    down.gif Download Now

    Source Code

    Browse the source online
    Check out source with TortoiseSVN tsvn://www.coderesort.com/svn/epicode/EPiCode.MimeTypeRegistrationModule


    To use this module you need to add the following to your web.config file:

          <section name="mimeTypeRegistration" type="System.Configuration.NameValueSectionHandler, System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
        <!-- Additional mimetypes, not defined by EPiServer  -->
        <add key=".docm" value="application/vnd.ms-word.document.macroEnabled.12" />
        <add key=".docx" value="application/vnd.openxmlformats-officedocument.wordprocessingml.document" />
        <add key=".dotm" value="application/vnd.ms-word.template.macroEnabled.12" />
        <add key=".dotx" value="application/vnd.openxmlformats-officedocument.wordprocessingml.template" />
        <add key=".potm" value="application/vnd.ms-powerpoint.template.macroEnabled.12" />
        <add key=".potx" value="application/vnd.openxmlformats-officedocument.presentationml.template" />
        <add key=".ppam" value="application/vnd.ms-powerpoint.addin.macroEnabled.12" />
        <add key=".ppsm" value="application/vnd.ms-powerpoint.slideshow.macroEnabled.12" />
        <add key=".ppsx" value="application/vnd.openxmlformats-officedocument.presentationml.slideshow" />
        <add key=".pptm" value="application/vnd.ms-powerpoint.presentation.macroEnabled.12" />
        <add key=".pptx" value="application/vnd.openxmlformats-officedocument.presentationml.presentation" />
        <add key=".xlam" value="application/vnd.ms-excel.addin.macroEnabled.12" />
        <add key=".xlsb" value="application/vnd.ms-excel.sheet.binary.macroEnabled.12" />
        <add key=".xlsm" value="application/vnd.ms-excel.sheet.macroEnabled.12" />
        <add key=".xlsx" value="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" />
        <add key=".xltm" value="application/vnd.ms-excel.template.macroEnabled.12" />
        <add key=".xltx" value="application/vnd.openxmlformats-officedocument.spreadsheetml.template" />
        <add key=".pptm" value="application/vnd.ms-powerpoint.presentation.macroEnabled.12" />

    If you need more mime types, just add them to the list.


    Tickets for this component:

    No results



    • EPiServer CMS 4.61 or newer (4.62/4.62B)
    • ASP.NET 2.0 or higher

    If you want to change and compile the source code:

    • Visual Studio 2008 SP1