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). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). 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 Validator

291 sites Security covered
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.

Activity

Total releases
2
First release
Sep 2025
Latest release
9 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Slowing

Releases

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