WP Unique Media
WordPress plugin to prevent duplicate files from being uploaded.
by Jörn Lund · github.com/mcguffin/wp-unique-media · website
★ 22stars
127release downloads
1forks
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/mcguffin/wp-unique-media/releases/download/0.2.0/wp-unique-media.zipDeclares an update source (https://github.com/mcguffin/wp-unique-media/raw/master/.wp-release-info.json), so updates arrive through the plugin's own updater.
From the readme
WP Unique Media
WordPress plugin to prevent duplicate files from being uploaded.
This is a shut-the-fork-up-and-work plugin. This means, if someone tries to upload a duplicate attachment to the media library, the existing file is silently getting selected.
If you need a more verbose approach, please use Media Deduper by Cornershop Creative instead. Both plugins use the same hashing and storage techniques, so either can be an alternative to the other.
Tested with
- Enable Media Replace
- Regenerate Thumbnails
- Block Editor
Installation
Production (Stand-Alone)
- Head over to releases
- Download 'wp-unique-media.zip'
- Upload and activate it like any other WordPress plugin
- AutoUpdate will run as long as the plugin is active
Development
- cd into your plugin directory
- $ git clone git@github.com:mcguffin/wp-unique-media.git
- $ cd wp-unique-media
- $ npm install
- $ gulp
Development status
The plugin is currently in alpha stadium. Please don't expect it to be stable or doing no damage. Issues and Pull requests are highly appreciated.
WP-Cron
Media hash values are generated during upload or automatically through a cronjob. Please wait a few minutes after the
Read the full README on GitHub →