File MIME

mfb - June 11, 2008 - 21:14

Drupal determines the MIME type of each uploaded file by applying a MIME extension mapping to the file name. The default mapping is hard-coded in the file_get_mimetype() function.

The File MIME module allows site administrators to replace the built-in mapping. For example, you may wish to serve .flac files as audio/x-flac rather than application/x-flac.

On the File MIME settings page, the custom mapping can be extracted from the server's mime.types file and/or configured via a text field.

Uninstalling this module will delete the mime_extension_mapping variable, thus restoring Drupal's built-in mapping.

Releases

Official releasesDateSizeLinksStatus
6.x-1.12008-Aug-157.62 KBRecommended for 6.xThis is currently the recommended release for 6.x.
Development snapshotsDateSizeLinksStatus
7.x-1.x-dev2009-Sep-177.51 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.


 
 

Drupal is a registered trademark of Dries Buytaert.