Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

File MIME

285 sites Security covered
View on drupal.org

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.

Activity

Total releases
5
First release
Aug 2025
Latest release
1 week ago
Releases (12 mo)
5 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Release date
2.0.2 Stable Jul 7, 2026
2.0.1 Stable Jul 7, 2026
8.x-1.13 Stable Aug 19, 2025
2.0.0 Stable Aug 19, 2025
2.x-dev Dev Aug 19, 2025