MIME Types Property File

This document describes how to write a properties file that maps file extensions to an appropriate content type.

By default, the server sends application/octet-stream as the content type for all unmapped file extensions. Additionally, if there is no configuration file, all file extensions are considered to be unmapped.

The server looks for a file specified by the server.mimeTypesFile property. Each line must contain an extension and type. Note that the dot prefix is included for readability, and is required.

Here is a sample "mimeTypes.props" file:

.class=application/java-class
.css=text/css
.gif=image/gif
.htm=text/html
.html=text/html
.ico=image/x-icon
.jar=application/java-archive
.java=text/x-java-source
.jpeg=image/jpeg
.jpg=image/jpeg
.jnlp=application/x-java-jnlp-file
.js=application/x-javascript
.pdf=application/pdf
.png=image/png
.ser=application/x-java-serialized-object
.txt=text/plain
.xml=text/xml
.zip=application/zip