Media Sync

Beschreibung

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.

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 directory. But I needed something to just import everything at once, so I created this plugin.

Files that are ignored:
– index.php,
– various hidden files,
– WP generated thumbnails – anything ending with for example -100×100.jpg.

Screenshots

  • Initial Page
  • Example of selecting files for import
  • Import to Media Library in progress
  • Import completed

Installation

  1. Upload media-sync directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‚Plugins‘ menu in WordPress

FAQ

Q: Stuck at importing / spins endlessly
A: Please try to increase max_execution_time in php.ini on server (as described here).

Rezensionen

20. Februar 2020
Thank the Lord for this plugin. I needed to rebuild my entire Media Library where the files were in the proper folders but I had a brand new database. This plugin easily scanned my uploads folder and imported them into the Media Library. Thanks for building this plugin!!!
12. Februar 2020
I just tried it, and it was easy and painless. Cool plugin! Although I don't understand why it creates a lot of cropped sized variations of an image in the folder.
12. Januar 2020
I will often upload files with Dreamweaver. But WordPress does not recognize that upload because it has not been processed in the database. This plugin highlights what you have uploaded and allows you to process on an individual bases.
31. Dezember 2019
Long story short I had to move a WordPress site via XML Export and Import of all the contents, and the site moved across to the new server without a problem except for one... the Media Library did not display the many years of image uploads. Ran Media Sync and everything was restored. Very smooth and seamless experience. Bravo!
13. Dezember 2019
I tried 3 other ones, but all didn't work at all or were buggy. This one is perfect! Thanks a lot
Lies alle 15 Rezensionen

Mitwirkende & Entwickler

„Media Sync“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin mitgewirkt:

Mitwirkende

„Media Sync“ wurde in 1 Sprache übersetzt. Danke an die Übersetzerinnen und Übersetzer für ihre Mitwirkung.

Übersetze „Media Sync“ in deine Sprache.

Interessiert an der Entwicklung?

Durchstöbere den Code, sieh dir das SVN Repository an oder abonniere das Entwicklungsprotokoll per RSS.

Änderungsprotokoll

1.1.1

  • Reduce the maximum number of items to import per batch from 20 to 10.
    So batch sizes are now: 1 (importing 1 to 10 items); 5 (importing 11 to 100 items) or 10 (importing more than 100 items)

1.1.0

  • [IMPORTANT] Date of imported Media Library items now defaults to the current date.
    But there are options to choose before importing and also a possibility to overwrite that using the custom hook.
  • New options page with the option to disable and hide „Dry Run“.
  • Fix Media Library filter that was showing all items when the filter didn’t find any result.

1.0.4

  • Reduce the number of items to import per batch

1.0.3

  • Support multisite network by changing required access capability from update_plugins to import

1.0.2

  • Another fix for get_current_screen error

1.0.1

  • Fix get_current_screen error

1.0.0

  • New option to clean up Media Library from items that are missing actual files (using custom Media Library filter)
  • New filter when scanning uploads directory which can help to show only files missing from Media Library

0.1.6

  • Fix PHP short array syntax
  • Update required PHP version to 5.4

0.1.5

  • Date of imported Media Library item is now set based on file modification timestamp

0.1.4

  • Add plugin localization
  • Add Serbian translation

0.1.3

  • Various improvements and fixes

0.1.2

  • Fix sorting of directories and files
  • Minor wording changes and code cleanup

0.1.1

  • Fix error on activation

0.1.0

  • Initial plugin features