Media Sync

Media Sync

Simple plugin to scan "uploads" directory and bring those files into Media Library.
Rating:
4.7
star-rating-1star-rating-2star-rating-3star-rating-4star-rating-5
Active Installations:
30000+
Last Updated:
Nov 20, 2024
WordPress Version:
5.3 or higher
Tested up to:
6.7.2

Scan and Import Files

Easily scan and import files from 'uploads' directory to Media Library, making them accessible and organized.

FTP Upload Integration

Seamlessly upload files to 'uploads' directory via FTP and bring them into Media Library for easy management.

Developer

friendly Plugin - Designed for developers, this plugin makes necessary database changes and helps in troubleshooting and optimizing your WordPress setup.

Customizable Ignored Files

Configure the plugin to ignore specific files, giving you full control over which files are imported into the Media Library.

1.4.7

  • Replace loading of external script for purchasing Pro version with simple external link
  • Tested for WordPress 6.7

1.4.6

  • Minor maintenance adjustment to prepare promo banner for upcoming redesign
  • Tested for WordPress 6.6.1

1.4.5

  • Fix DOM IDs when scanning directories or files with special non-latin characters
  • Bring back promo banner without remote fetch

1.4.4

  • Decode post_title and guid in attachment data
  • Tested for WordPress 6.5.5

1.4.3

  • Disable fetching promo banner from remote origin in hopes of resolving 404 errors
  • Load plugin only on admin pages
  • Tested for WordPress 6.5.4
  • Get proper error message from wp_insert_attachment function

1.4.2

  • Fix enabling or disabling debugging option
  • Fix various issues with paths on Windows servers
  • Remove “Scan directory” option to simplify plugin maintenance and compatibility with Windows servers
  • Tested for WordPress 6.5.3

1.4.1

  • Fix deprecated warnings with PHP 8.1
  • Increase required versions to WordPress 5.3 and PHP 7.1

1.4.0

  • Add correct plugin version when loading assets and updated readme.txt.

1.3.3

  • Fix detecting files that already in database when “Scan directory” option is used. Issue started in previous version (1.3.2).

1.3.2

  • Fix handling file names with even rarer special characters that might have resulted in duplicate imports.

1.3.1

  • Ignore optimized .webp versions of original images (e.g. .jpg.webp) and retina thumbnails (e.g. -100×100@2x.jpg) by default. It’s still possible to customize it with media_sync_filter_is_scan_object_ignored hook.

1.3.0

  • New option to set custom Batch Size. This might help with errors due to server limits (e.g. max_execution_time).

1.2.9

  • Fix selecting multiple files without clicking on checkbox (e.g. shift-select).
  • Minor code cleanup.
  • Update supported WordPress version to 6.2.

1.2.8

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

1.2.7

  • Extend plugin access 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.5

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

1.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.3

  • Better error handling and fallback when finding mime type

1.2.2

  • Fix meta data errors caused by invalid mime types

1.2.1

  • Much better error handling while importing

1.2.0

  • Optimized directory scanning to use less memory
  • 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.1.8

  • Fix handling big (“-scaled.jpg”) images introduced in WordPress 5.3. These files will now be skipped and won’t be imported multiple times.
  • Add handy “Re-scan” button.

1.1.7

  • Fix issues when importing files containing special characters

1.1.6

  • Slight improvements with error handling in JavaScript

1.1.5

  • Always convert backslashes () to forward slashes (/) to fix various issues when using Windows Server.

1.1.4

  • Important backslash () vs forward slash (/) fix for use on Windows Server.

1.1.3

  • New option to set “Scan directory” in settings which will allow 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.1.2

  • Fix Smart File Time on Windows server

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

worked well for cleaning up media

By MeowOrNever on January 13, 2025

I thought I would complement this plug-in for helping me track down the mess left by the wordpress auto-scaler. The plugin listed orphan images so I could deal with them on the side. Most where extra copies from that darn Wordpress auto-scaling and file renames gone wonky. Enable Media Replace and Phoenix File Rename were essential tools for implementing clean-up sympathetic to the Wordpress database.

The only thing I didn't like about Media Sync is that I couldn't find a way to filter to only files that need attention. Kind of tedious to scroll through a few thousand entries to find the few bad apples.

Works great

By DELUCKS (deLucks) on September 20, 2024

Easy to set up and re-import of all media files possible.

Had issue but it was resolved via support

By kryllyn on September 6, 2024

This was the issue that I run into:

Dry Run works fine, but actuall import just stops working after importing just one file. There's information to check the error in particular row of the file or in the logs - there's no information in both places.

I wrote a ticket and didn't get any response for 24h that they even get my request. I wrote on support forum - silence for few hours.

But after a while they finally responded to my ticket and I got solution within short period of time and quick exchanges of emails :)

Unresponsive website

By midr on June 14, 2024

I was using this plugin on our website and didn`t notice that it makes the website super slow.
I was deactivating all other plugins one by one and was confinced this Plugin could not be responsible for the bad performance.
I deactived it no since i didn't work anymore with the latest wordpress update and found out that the website is now way faster.
On the upsite: It worked as promised and synced files uploaded via FTP.
To the developper. Please check why your plugin slowes down the websites...

Super!!

By vedon on April 19, 2024

It just works as intended.

The page can not be found

By anderswihlgaard on April 18, 2024

Will sync a picture. But now I get 403 error. The page can not be found. Uninstalling Media sync and reinstalling it again. The same error. No problems before. The problem may have come with the latest wordpress update.

Perfect!

By jto7qvt6 on April 16, 2024

Thanks!

Excellent

By vletroye on January 28, 2024

Saved my Media Library after a reinstallation of Wordpress into which I copied my old library

Great: it does what I needed

By uitgelezenverhalen on December 8, 2023

Some 250 files were missing in my database, but Media Sync put them all back, even with their original time stamp!

Excellent Plugin

By zandiver on November 3, 2023

It's simple and does the job it's meant to do. I love it and have it in my list for all the sites I work on.

Try other plugins too!

Demo Importer Plus

Import the demo content, widgets, customizer settings and theme settings with a single click without any hassle.

Try Demo More Details

WP Options Importer

Export and import WordPress Options.

Try Demo More Details

Media Sync

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

Try Demo More Details
Screenshots
Author Site Author Site

Try Media Sync With InstaWP

Contact Sales

Reach out to us to explore how InstaWP can benefit your business.