Tuesday, January 19, 2010

How to add new MIME type

To add a new MIME type
Create following 2 files in alfresco/extension folder
1. custom-services-context.xml
2. mimetypes-custom-extension.xml

Add the following to the 1st file – custom-services-context.xml

<bean id="mimetypeConfigService" class="org.alfresco.config.xml.XMLConfigService" init-method="init">
<bean class="org.alfresco.config.source.UrlConfigSource">

In the mimetypes-custom-extension.xml file define your new mime type here for an example - .abc

<alfresco-config area="mimetype-map">
<config evaluator="string-compare" condition="Mimetype Map">
<mimetype mimetype="application/abc" display="ABC File Type">
<extension default="true">abc</extension>

To test it, Restart your server


  1. The important thing here is to match the name of the workflow correctly in the condition for identifying the form that will be matched to it.

    alfresco workflow

  2. I like it. I have also written something about MIME Types. It would be great to read it.