Documentation Center

MIME Type Definitions

WorldServer uses MIME types to associate each asset type with the file type used to segment the content of the asset.

To create a MIME type using the desc.xml file, use this template:

<mime_type type="MIME type" description="type description" is_text="is textual type?" default_extension="default file extension" external_type="external type" filter="filter name" extensions="list of file extensions" filter_config="filter configuration name">
When you add custom MIME types, specify:
PropertyDescription
typeStandard MIME type string (for example, text/plain)
descriptionA user-friendly description of the MIME type
is_textyes or no; if yes, the type represents textual content editable in the Freeform Editor
default_extensionThe default file extension for this MIME type (for example, .html)
external_typeThe type sent to the browser when the file is viewed. In most cases, this is the same as type
filterThe file type used to filter (parse) data of this type
extensionsList of all possible file extensions for this MIME type (for example, .htm, .html)
filter_configThe file type configuration used to filter data of this type

You can define multiple MIME types by adding multiple entries to the desc.xml file. Note that all entries must be added within the <components> tags of the desc.xml file.