MIME Types Configuration

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 resource named "/config/mimeTypes.props" for the property definitions. 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: