File MIME
The File MIME module allows administrators to customize how Drupal recognizes the MIME types of uploaded files, overriding the default hard-coded mapping. This enables finer control over file handling, such as serving specific audio formats with their correct MIME types, and can be applied to existing files.
Drupal determines the MIME type of each uploaded file by applying a MIME type mapping to the file name. The default mapping is hard-coded in ExtensionMimeTypeGuesser.
The File MIME module allows site administrators to alter the built-in mapping. For example, you may wish to serve FLAC files as audio/flac rather than application/x-flac.
On the File MIME settings page, the MIME type mapping can be extracted from the server's mime.types file and/or configured via a text field, and can also be applied retroactively to all previously uploaded files.
Disabling this module will restore Drupal's built-in mapping.
You can support development by contributing or sponsoring.