Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

File Upload Secure Validator

Security covered Under active development 11,540 sites

This module enhances file uploads by performing more secure server-side validation. It checks the file's true MIME type against allowed extensions, rather than relying solely on the file name. This provides a more robust security measure for uploaded files.

This is a very simple and small module which performs a server side validation for the extension of an uploaded file of any content type's file field. Default drupal 7 file validation is performed by file_validate_extensions which only relies on the file name extension.
'File Upload Secure Validator' uses the php library 'fileinfo' and is dependent on that. Therefore the server hosting the drupal instance should have this library enabled. Through this php lib we can perform a more secure and reliable check on the file's mime type and compare that to the allowed file extensions, as these are set by the admin within the content type's field settings.

This module is useful when we need to enforce a maximum security mime type detection.

Dependencies
The module depends on the php library fileinfo. Please make sure this library is present and enabled on the server.

Installation
Install module like usual. No special installation considerations

Configuration
No configuration options. After enabling the module, it will perform an alternative server side extension validation on every uploaded file of every content type file field.

Drupal 11 · not 10

Ask your assistant about File Upload Secure Validator

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

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
7
Tracked since
May 2023
Latest release
5 months ago
Releases (12 mo)
5 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
2.2.2 Stable 11 May 15, 2026
2.1.1 Stable 9–10 May 14, 2026
2.2.1 Stable 11 Dec 19, 2025
2.2.0 Stable 11 Dec 19, 2025
2.2.x-dev Dev 11 Dec 19, 2025
2.1.0 Stable 9–11 Aug 30, 2024
2.0.1 Stable 9–10 May 29, 2023