Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

File MIME

Security covered Under active development 314 sites

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.

Drupal 11 · not 10

Ask your assistant about File MIME

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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
6
Tracked since
May 2024
Latest release
3 months ago
Releases (12 mo)
2 ▼ from 3
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP 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
8.x-1.12 Stable 8–11 PHP 7.1 May 22, 2024