Document Upload: Customizing MIME Mappings

This is an administrator-level activity.

On document upload to the Content Engine, Workplace detects the document's MIME type, and stores the MIME type in the Content Engine. Workplace uses the following order of precedence to determine a document's MIME type:

  1. Uses the document's extension to check mime-mapping entries in the Workplace web.xml file.
  2. Uses the MIME type sent by the browser, if the MIME type is not application/octet-stream.
  3. Uses the document's extension to check the JVM MIME type mappings.
  4. If it has not detected the MIME type, Workplace sets the type to null and the Content Engine resolves the mime type.

You customize MIME mappings in the web.xml file. If you modify the file to include any extended characters, save the file as UTF-8.

To customize MIME mappings:

  1. In <AE_install_path>Workplace/WEB-INF/web.xml, find the <mime-mapping> entries, such as in the following example.

    <mime-mapping>
       <extension>doc</extension>
       <mime-type>application/msword</mime-type>
    </mime-mapping>

  2. To modify an existing MIME type, change the <mime-type> value for the applicable extension type. To add a MIME mapping, insert a new <mime-mapping> element.
  3. Redeploy Workplace.