To upload a resource, Legacy Content Delivery must be aware of the resource's MIME type. This procedure describes how to add a MIME type.
About this task
Add MIME types only for resources that Legacy Content Delivery supports.
Note: If a MIME type is not listed in the mime-types.xml file, it is assumed to be an XML file.
Procedure
On the Legacy Content Delivery server, edit ContentDelivery_home/mime-types.xml.
To add a new MIME type, follow this syntax:
<mime-type name="Content type" type="Type">
<description>Description of content</description>
<extensions>File extensions</extensions>
</mime-type>
where:
Option
Description
Content type
Internet media type of the content, consisting of a type and subtype. In this example, text/xml.
Type
Either xml or binary.
Description
A brief description of the content. In this example, XML document.
File extensions
A comma-delimited list of acceptable file extensions for this MIME type. In this example, .xml,.xsd,.rng, and so on.
To add a file extension to a MIME type, append the file extension to the end of an existing MIME type. For example, to add .myformat files as a text/xml MIME type, add .myformat to the end of the extensions element.