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 Validator

278 sites Security covered Drupal 10–11
View on drupal.org

This module enhances file uploads by performing a secure, server-side check of the file's MIME type against its extension. It helps prevent malicious uploads by ensuring file types match their declared extensions, and logs any discrepancies.

  • This module performs a server-side validation for the extension.
  • It works on the upload type file field used in any entity.
  • It can perform a more secure and reliable check on the file's mime type and compare that to the allowed file extensions.
  • It helps in site making malicious type uploads free for security purposes.
  • Logs the upload if found malicious i.e if not of the type of extension which is being requested.
  • Provides extension configurable, so that it won't get outdated.

Installation

composer require 'drupal/file_mime_validator'
drush en file_mime_validator

Configuration

  1. Navigate to Admin->Config->System->File Mime Validator
  2. Configure file mime types by adding to default ones.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Sep 2025
Latest release
10 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Slowing

Releases

Version Type Core Release date
3.0.0 Stable 10–11 Oct 9, 2025
3.x-dev Dev 10–11 Sep 19, 2025