Documentation Center

Configuring MIME types in the desc.xml file

WorldServer uses MIME types to associate each type of information with file types.

Procedure

  1. Open the desc.xml file.
  2. Add an entry according to the following 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">
    In this case:
    PropertyDescription
    typeA standard MIME type string (for example, text/plain).
    descriptionThe description of the MIME type.
    is_textyes or no. If yes, the type represents textual content that you can modify 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 segment assets of this type.
    extensionsA list of all the possible file extensions for this MIME type (for example, .htm, .html).
    filter_configThe file type configuration used to segment data of this type.

Sample MIME type entry

<components>

   <!-- Shows you how to create a MIME type using the component descriptor file -->
   <mime_type type="complex/Sample" description="My sample MIME type"
      is_text="yes"
      default_extension="smp"
      external_type="plain/text"
      filter="Any XML File Type"
      extensions="smp klg"/>

</components>