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
- Module categories: Media
- 381 sites report using this module
- Created by mfb on , updated
- Drupal 10 is here!
The 8.x-1.x branch is compatible with Drupal 10.
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Development version: 8.x-1.x-dev updated 23 Mar 2024 at 01:23 UTC
Development version: 7.x-1.x-dev updated 10 Jan 2023 at 21:28 UTC