media_dupe_detect
No security coverage
Features
The Media Duplicate Detect module enhances the Media Library experience by automatically identifying duplicate file uploads. When a user attempts to upload a file that already exists, the module checks the file hash and suggests using the existing media item instead.
Key features include:
- Detects duplicate media items based on file hash
- Prompts users to reuse existing media instead of uploading duplicates
- Role-based permission to bypass duplicate detection (for trusted users)
- Field-level configuration for enabling duplicate checks
Use cases:
- Keep your Media Library clean and organized
- Avoid bloating your site with repeated uploads of the same image or document
- Improve media management for large content teams or editorial workflows
Post-Installation
After enabling the module and its dependencies:
- Go to the form display configuration of the content type or entity type using a media field.
- Click the gear icon on the Media Library widget settings.
- Enable the “Detect duplicates” checkbox to activate duplicate detection for that field.
- Navigate to People > Permissions to allow specific roles to bypass duplicate detection using the “Bypass media duplicate upload prevention” permission.
No additional configuration pages or content types are added by the module.
Additional Requirements
- Drupal Core Media (version 10 or 11)
- Drupal Core Media Library
- File Hash module – used to compute and compare file hashes