Drupal is a registered trademark of Dries Buytaert

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:

  1. Go to the form display configuration of the content type or entity type using a media field.
  2. Click the gear icon on the Media Library widget settings.
  3. Enable the “Detect duplicates” checkbox to activate duplicate detection for that field.
  4. 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

Activity

Total releases
3
First release
Mar 2025
Latest release
11 months ago
Release cadence
0 days
Stability
0% stable

Release Timeline

Releases

Version Type Release date
1.0.0-beta2 Pre-release Mar 26, 2025
1.x-dev Dev Mar 26, 2025
1.0.x-dev Dev Mar 26, 2025