sandywp / plugins / media-sync

Media Sync

4.7 out of 5 stars. 4.7 86 reviews

Simple plugin to scan "uploads" directory and bring those files into Media Library.

Launch a sandbox with this plugin → No signup.
Ready in seconds.

v1.5.3 50,000+ installs WP 5.3+ PHP 7.4+

your-sandbox.sandywp.com/wp-admin
Media Sync running inside a SandyWP sandbox

What you get inside

4 screens
  • Initial Page

  • Example of selecting files for import

  • Import to Media Library in progress

  • Import completed

About this plugin

This plugin allows you to examine all files within the uploads directory to determine which ones are present in the Media Library and which ones are just sitting there unused. You can then choose the files you want to import into the database, thereby including them in the Media Library.

Moreover, you can utilize FTP to upload files directly to the uploads directory and subsequently add these files to the Media Library avoiding any file size limitations.

Disclaimers

  1. “1 file first”
    Please try to import only one file first – to see if it works as you expected.

  2. “All at once”
    This plugin is designed for scanning, selecting, and importing all files at once. However, based on your server’s configuration, memory, and timeout challenges may arise with extensive file quantities. To mitigate this, a newly revamped pro version employs incremental directory scans to effectively tackle these issues.

  3. “Your setup is unique”
    Please be aware that every WordPress installation is unique, and there may be instances where this plugin does not function as expected. Should this occur, we recommend enabling the debugging feature in the plugin’s settings to identify the issue. After investigating, kindly provide a detailed description of your findings in the Support section (or here if you’re using pro version). The more comprehensive the details, the higher the likelihood of resolving the problem effectively.

Ignored files

  • various hidden files (.DS_Store, .htaccess),
  • WP generated thumbnails (files ending with for example -100×100.jpg),
  • WP generated scaled images (files ending with -scaled),
  • optimized .webp versions of original images (.jpg.webp),
  • retina thumbnails (-100×[email protected]).

These can be modified and enhanced using the new advanced filters available in the pro version.

Media Sync Pro features

  • Revised incremental scan: Allows scanning and importing unlimited number of files.
  • Quick single directory rescan: Easily rescan one directory to find new files or apply a different filter without reloading the whole page.
  • Advanced filters: Find any file by customizing all default filters, search for a specific file type (images, videos, etc.), skip by tailor-made rules, or enter any custom pattern.
  • Schedule automatic imports: Select a desired interval and let the plugin automatically import any new files it finds.
  • Import logs: View the history of manual or scheduled imports.
  • Limit plugin access: Limit plugin access to a specific role.

Get pro version here.

Questions

Stuck at importing / spins endlessly

Please try to increase max_execution_time (and/or memory_limit) in php.ini on server (as described here).

Files not showing up in Media Library

Please make sure “Dry Run” option is NOT checked. This is a safety mechanism to make sure you know what you’re doing, so be careful, try it first with just one file.

Doesn’t work

Please first try to turn on debugging in Settings -> Media Sync and check Network tab in Chrome DevTools to see what is going on in the background. Then report actual errors since it’s hard to help without knowing the error which is causing the problem.

4.7

86 reviews

  • 5 ★ 79
  • 4 ★ 0
  • 3 ★ 0
  • 2 ★ 3
  • 1 ★ 4

Ratings come from WordPress.org. SandyWP does not collect its own reviews.

sandywp / also on the shelf

Try another plugin

Spin up a real WordPress site in seconds.

Test plugins, build a demo, hand a client a link — then squash it and start again. No local setup, no Docker.