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.
Project information
- Project categories: Media
325 sites report using this module
- Created by mfb on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Development version: 2.x-dev updated 9 Jan 2026 at 22:39 UTC
Development version: 8.x-1.x-dev updated 20 Aug 2025 at 06:12 UTC

