Perl Documentation
NAME
fast_mime_map - File extension to MIME type mapping
SYNOPSIS
Plugin fast_mime_map
# Optionally: MimeMap .foo application/foo
DESCRIPTION
This module attempts to map filenames to MIME types without doing any I/O. It is purely based on file extensions. If you need to introspect the contents of the file to get the MIME type then use the magic_mime_map plugin.
There is a minimal, but useful default mapping. If present, the contents of
/etc/mime.types
are loaded as well.
Anything specified in the MimeMap
config directives overrides the default
mappings.
The default MIME type is text/html (in case an extension cannot be found in your custom mappings nor the default mappings). To override the default mapping:
MimeMap #default application/octet-stream
(Or whatever default you would prefer).