+

Search Tips   |   Advanced Search

Configure MIME types for Wikis

Configure Multipurpose Internet Mail Extensions (MIME) types to file extensions.

We can configure Wikis to assign specific MIME types to files with specific extensions. A MIME type informs operating systems about what applications to use to open the file types, and what applications to display in dialog boxes. MIME types make it easier for users to know at a glance what type of data a file contains. Some applications do not download files that do not have a MIME type they support.

This configuration procedure applies to files attached to Wikis pages through the web user interface. The configuration is ignored if a third-party application assigns MIME types to extensions using the API. For information about assigning MIME types through the API, see the Wikis API topic.

  1. Check out the Wikis configuration files:

    To determine cellname: print AdminControl.getCell()

  2. Edit mime-wikis-config.xml file.

    The content of the file is similar to the following excerpt:

    <mapping mimeType="..." mediaType="..."> 
      <extension></extension> 
      <extension></extension> 
      .... 
    </mapping>

  3. In the mimeType attribute, specify a mime type in standard format, for example text/plain. Each value must be unique or an error is returned when we start the system. Go to the Internet Assigned Numbers Authority (IANA) website for a list of MIME types.

    The mediaType attribute is not supported in Connections v5.

  4. In each extension element, specify the extensions to map to the MIME type. Each value must be unique or an error is returned when we start the system.

  5. Apply the changes. See Applying Wikis property changes.


Example

<mapping mimeType="text/plain" mediaType=""> 
 <extension>.txt</extension> 
  .... 
</mapping>


Parent topic:
Change Wikis configuration property values


Related:

Apply Wikis property changes