Yous can scan all files that are inuploads directory and run into which ones are actually in Media Library and which ones are but sitting in that location. Then you can select files you want to import to the database and therefore make them bachelor in Media Library.

You can also employ FTP to upload your files touploads directory and bring those files into Media Library.

Disclaimers

Please read earlier adding a support topic. Reviews are not intended for support or suggestions.

  1. "For developers"
    This plugin makes database changes (wp_posts andwp_postmeta tables), and it was primarily developed to help other developers that are aware of the consequences.

  2. "1 file first"
    Please be careful and try to import only one file first, to see if it works.

  3. "All at once"
    This plugin is focused on scanning, selecting, and importing all files at in one case. So it might not be great for huge amounts of files, since it can use upward a lot of retentiveness. Futurity versions volition hopefully solve that problem. For now, you tin can endeavor to go to Settings -> Media Sync and set it to scan simply a specific directory.

  4. "Your setup is unique"
    Please go along in listen that each WordPress installation is unique, so it's quite possible this plugin volition not work in your case. If that happens, please turn on debugging in settings of this plugin, endeavour to figure out why you have that problem, and then describe what you found in the Support department. The more details nosotros have – it's more likely the problem will exist solved.

Ignored files

  • alphabetize.php,
  • diverse hidden files (.DS_Store, .htaccess),
  • WP generated thumbnails (files ending with for example -100×100.jpg),
  • WP generated scaled images (files ending with -scaled).

This is at present configurable with a custom hook function and information technology can totally overwrite these rules or add together additional ones.

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

Stuck at importing / spins incessantly

Please effort to increase max_execution_time (and/or memory_limit) in php.ini on server (as described here). Or if you accept too many files, attempt going to Settings -> Media Sync and change "Scan directory" to some inner folder.

Files not showing up in Media Library

Please brand sure "Dry Run" option is Non checked. This is a safety mechanism to brand certain you know what you're doing, so be conscientious, endeavor it first with just one file.

Doesn't work

Please outset try to turn on debugging by adding this: define('WP_DEBUG', true); to your wp-config.php and check Network tab in Chrome DevTools to come across what is going on in the groundwork. Then study actual errors since it's hard to assist without knowing the mistake which is causing the problem.

I googled a list of positive adjectives beginning with an "I". This plugin deserves them all. Thank y'all. This plugin is... Ideal Idyllic Illuminating Illustrious Imaginative Immaculate Immortal Immovable Immune Impartial Impassioned Impeccable Impenetrable Impervious Important Impressive Inalienable Incandescent Incomparable Incontrovertible Incredible Industrious Influential Informed Ingenious Innovative Inquisitive Insightful Integral Invaluable Inviting Irised Irreproachable

Works wonderfully and actually saves a lot of work 🙂

Simply does exactly what I needed, i.due east. import large numbers of files that are already sitting on the server into the media library.

Awesome as expected event & quick ease.

Bright plugin for rescanning media in / Uploads folder.

This plugin merely saved my life !... my medias ! Everything is back correctly ! Then like shooting fish in a barrel ! And so functional ! Actually expert job ! To cheers for this plugin I have completed the French translation !😉 And if yous're ok and if you want I'll be pleased to draw you a new icon with more fun !😉 Thank you again for this plugin !

Read all 50 reviews

"Media Sync" is open up source software. The following people have contributed to this plugin.

Contributors

1.ii.8

  • Create a custom _msc record in wp_postmeta table to be able to differentiate files imported using this plugin. Could be useful to make clean up the database later on on.

ane.2.7

  • Extend plugin admission to "Editor" and "Author" roles.

1.2.6

  • If debugging is turned on, AJAX requests for import are now html which is rendered directly in UI.

1.2.five

  • New filter hook (media_sync_filter_before_update_metadata) which tin be used to customize how metadata is updated or to run additional actions after file import.

i.2.4

  • Handle files with quotes (apostrophes) or other special characters in the file name.
  • Continue importing other selected files if there was an error with some of the files.
  • Show errors in UI instead of alert.

1.2.iii

  • Better error handling and fallback when finding mime type

1.two.ii

  • Fix meta data errors caused by invalid mime types

1.ii.1

  • Much meliorate error handling while importing

i.2.0

  • Optimized directory scanning to apply less retentivity
  • New option to turn on debugging for this plugin
  • Changed parameters passed to media_sync_filter_is_scan_object_ignored hook function
  • Now requires PHP 5.5

1.one.8

  • Fix handling big ("-scaled.jpg") images introduced in WordPress 5.3. These files volition now be skipped and won't exist imported multiple times.
  • Add handy "Re-scan" button.

1.1.7

  • Fix issues when importing files containing special characters

one.1.half-dozen

  • Slight improvements with error treatment in JavaScript

1.i.5

  • Always convert backslashes ("\") to frontwards slashes ("/") to set various problems when using Windows Server.

1.1.4

  • Important backslash ("\") vs forward slash ("/") gear up for use on Windows Server.

1.1.3

  • New option to ready "Scan directory" in settings which will let checking only certain sub directory.
  • New hook function media_sync_filter_is_scan_object_ignored which can be used to overwrite which files are ignored by default or to just skip additional files.

1.i.two

  • Fix Smart File Fourth dimension on Windows server

1.1.ane

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

one.1.0

  • [Important] Date of imported Media Library items now defaults to the current date.
    Just at that place are options to choose before importing and also a possibility to overwrite that using the custom hook.
  • New options folio with the choice to disable and hide "Dry Run".
  • Set up 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

i.0.iii

  • Back up multisite network by changing required admission capability from update_plugins to import

i.0.2

  • Another fix for get_current_screen error

one.0.1

  • Gear up get_current_screen error

i.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 assistance to prove only files missing from Media Library

0.ane.6

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

0.1.5

  • Engagement 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

  • Set sorting of directories and files
  • Minor diction changes and code cleanup

0.i.1

  • Fix mistake on activation

0.1.0

  • Initial plugin features