You are here

Adding a MIME type

Use this information to add a MIME type definition.

The MIME type default definitions are in the mimetype-map.xml file.
  1. Copy the default definition file and place it in a file called <extension>/mimetype/mimetypes-extension-map.xml.
  2. Modify the inserted MIME type to match your requirements. For example:

    <alfresco-config area="mimetype-map">
       <config evaluator="string-compare" condition="Mimetype Map">
             <mimetype mimetype="application/xxx" display="My Example Mimetype">

    An example file is provided in <extension>/mimetype/mimetypes-extension-map.xml.sample. You can include multiple files and each one is loaded automatically.

  3. Save the file.
  4. Restart Alfresco.
The MIME type is available in the repository.

Sending feedback to the Alfresco documentation team

You don't appear to have JavaScript enabled in your browser. With JavaScript enabled, you can provide feedback to us using our simple form. Here are some instructions on how to enable JavaScript in your web browser.