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:
| Property | Description |
|---|---|
| type | Standard MIME type string (for example, text/plain) |
| description | A user-friendly description of the MIME type |
| is_text | yes or no; if yes, the type represents textual content editable in the Freeform Editor |
| default_extension | The default file extension for this MIME type (for example, .html) |
| external_type | The type sent to the browser when the file is viewed. In most cases, this is the same as type |
| filter | The file type used to filter (parse) data of this type |
| extensions | List of all possible file extensions for this MIME type (for example, .htm, .html) |
| filter_config | The 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.