TIEmediahelper Media Library Tools
A simple plugin to find files which are stored in the WP uploads folder (and sub-folders) but which have no corresponding entry in the Media Library. The plugin creates a new unattached media record for each file, plus metadata where appropriate. You can then delete leftover files through the normal
A simple plugin to find files which are stored in the WP uploads folder (and sub-folders) but which have no corresponding entry in the Media Library.
The plugin creates a new unattached media record for each file, plus metadata where appropriate. You can then delete leftover files through the normal WordPress Media Library UI.
- 01Upload the plugin folder and its contents to the /wp-content/plugins directory.
- 02Activate the plugin through the ‘Plugins’ menu in WordPress.
- 03Run the search from the Media Helper option in the Tools menu.
Alternatively, use the built-in ‘Add New’ option on the Plugins menu to install.
Frequently asked questions.
The plugin sits there for ages and doesn’t seem to be doing anything.
It’s working, honest. The problem is that the file search is quite intensive, especially if you have thousands of files in the search path. Kick it off and leave it running… it’ll get there eventually. In testing, the plugin ran successfully on sites with over 10,000 files. Patience, grasshopper. 🙂
The plugin sits there for ages, then gives me a 404.
This can happen if you have a ridiculous number of files in a directory and a wussy server. You can try running it on individual sub-folders (by entering the path on the options page) but if you have tens of thousands of files in a single folder, you’ll probably have to work around it by temporarily shuffling them around.
The plugin timed out.
This can happen if you have a lot of files – you’ll get the standard “Maximum execution time of 30 seconds exceeded” error message if your server’s php settings are normal. Don’t worry. Just hit back and start the process again: it’ll whizz through the ones it’s done and carry on from where it left off.