For
Viewing to show new or auxiliary file types (MIME types) other than the default types in the TOC, their file formats must be specified manually in the
web.xml file.
-
Stop the Apache Tomcat service(s).
-
Open the
web.xml file in a text or XML editor.
-
Locate the MIME-mapping tags:
- <mime-mapping>
<extension>ppt</extension>
<mime-type>application/vnd.ms-powerpoint</mime-type>
</mime-type>
-
Add the following tags after the last tag specified in step 3.
- <mime-mapping>
<extension>specify the MIME extension</extension>
<mime-type>specify the MIME type</mime-type>
</mime-type>
-
In the tags added, specify the MIME extension between the extension elements and remove the text
specify the MIME extension and
specify the MIME type as shown in the example below:
- <mime-mapping>
<extension>docx</extension>
<mime-type>application/vnd.openxmlformats</mime-type>
</mime-type>
To add more file formats, perform steps 4 and 5.
-
Save and close the file.
-
Restart Apache Tomcat service(s).
-
If the
serverPDFStream is set to
"true", delete all files in the
\tomcat\conf\Catalina\localhost\ with names as
Repository.
When the first document in the repository is opened using
Viewing, the files will be recreated and all files in
your repositories\WEB-INF will be replaced. Ignore any error message you may see when opening the first document.
The MIME types are added successfully.