Module helps to uniquely identify the files using their MD5 hashes.
All that this module does - extends the file_managed
table with md5
column and, on file saving, set a value for it.
MD5 validation
Module provides an implementation of hook_file_validate()
to validate file duplicates. This validation could be disabled here: admin/config/media/file-system
.
Example implementation
- Create a form with submit callback.
- Save MD5 hash instead of file ID.
- Export configuration via Features.
- Add files to version control system.
- Reinstall the site and add files into database.
All these steps implemented in a test module: File MD5 (Test).
Note: likely, this module will not be understandable for newbies. Use it if you'd really know what to do.
Supporting organizations:
Project information
- Module categories: Administration Tools, Content Editing Experience, Developer Tools
- 13 sites report using this module
- Created by BR0kEN on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
7.x-1.6
released 13 April 2016
Works with Drupal: 7.x
✓ Recommended by the project’s maintainer.
Development version: 7.x-1.x-dev updated 13 Apr 2016 at 09:53 UTC