You can scan all files that are in “uploads” directory and see which ones are actually in Media Library and which ones are just sitting there. Then you can select those that you want to import to database and therefore make them available in Media Library.
You can also use FTP to upload your files to “uploads” directory and use this plugin to bring those files into Media Library. There are other plugins that can be used for that, but with this one you can easily select all and import all at once.
This plugin is still in early development so it has basic functionality, but more features will be added if there is some interest for that.
Some of the plans for new features
- Remove database record when actual file doesn’t exist
- Various filters
- Thumbnail preview on hover
- Show full log for each file
Why I created this plugin
I once copied WordPress site to a different server and Media Library ended up being empty, even tho all files were in “uploads” directory and database was copied. So I had to use some other plugin which required me to manually enter each directory and import files in batches per each director. But I needed something to just import everything at once, so I created this plugin.
Import to Media Library in progress
Example of selecting files for import