Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

File MIME

278 sites Security covered Drupal 11 · not 10
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.

Depends on

Dependencies of the latest stable release

  • file Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
5
Tracked since
Aug 2025
Latest release
1 month ago
Releases (12 mo)
2 ▼ from 3
Maintenance
Active

Release Timeline

Releases

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