Title: Синхронизация медиа
Author: erolsk8
Published: <strong>27.04.2018</strong>
Last modified: 15.08.2026

---

Поиск плагинов

![](https://ps.w.org/media-sync/assets/icon.svg?rev=2021152)

# Синхронизация медиа

 Автор: [erolsk8](https://profiles.wordpress.org/erolsk8/)

[Скачать](https://downloads.wordpress.org/plugin/media-sync.1.5.3.zip)

 * [Детали](https://ru.wordpress.org/plugins/media-sync/#description)
 * [Отзывы](https://ru.wordpress.org/plugins/media-sync/#reviews)
 *  [Установка](https://ru.wordpress.org/plugins/media-sync/#installation)
 * [Разработка](https://ru.wordpress.org/plugins/media-sync/#developers)

 [Поддержка](https://wordpress.org/support/plugin/media-sync/)

## Описание

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.

#### Дисклеймер

 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](https://mediasyncplugin.com/?utm_source=readme&utm_medium=base_plugin&utm_campaign=aao)
    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](https://users.freemius.com/store/6428/support)
    if you’re using pro version). The more comprehensive the details, the higher the
    likelihood of resolving the problem effectively.

#### Игнорируемые файлы

 * различные скрытые файлы (.DS_Store, .htaccess),
 * WP сгенерировал миниатюры (файлы, заканчивающиеся, например, на -100×100.jpg),
 * WP сгенерировал масштабированные изображения (файлы, заканчивающиеся на -scaled),
 * оптимизированные версии .webp оригинальных изображений (.jpg.webp),
 * миниатюры повышенной чёткости (-100×100@2x.jpg).

These can be modified and enhanced using the new advanced filters available in the
[pro version](https://mediasyncplugin.com/?utm_source=readme&utm_medium=base_plugin&utm_campaign=df).

#### 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](https://mediasyncplugin.com/?utm_source=readme&utm_medium=base_plugin&utm_campaign=pfl).

## Скриншоты

[⌊Начальная страница⌉⌊Начальная страница⌉[

Начальная страница

[⌊Пример выбора файлов для импорта⌉⌊Пример выбора файлов для импорта⌉[

Пример выбора файлов для импорта

[⌊Импорт в Библиотеку файлов выполняется⌉⌊Импорт в Библиотеку файлов выполняется⌉[

Импорт в Библиотеку файлов выполняется

[⌊Импорт завершён⌉⌊Импорт завершён⌉[

Импорт завершён

## Установка

 1. Загрузите директорию `media-sync` в `/wp-content/plugins/`
 2. Активируйте плагин в разделе ‘Плагины’ административной панели WordPress

## Часто задаваемые вопросы

### Застрял при импорте / крутится без остановки

Please try to increase `max_execution_time` (and/or `memory_limit`) in `php.ini`
on server (as described [here](https://thimpress.com/knowledge-base/how-to-increase-maximum-execution-time-for-wordpress-site/)).

### Файлы, не отображаемые в медиатеке

Убедитесь, что опция «Пробный прогон» не активирована. Это механизм безопасности,
позволяющий убедиться, что вы знаете, что делаете, поэтому будьте осторожны, попробуйте
сначала только с одним файлом.

### Не работает

Рекомендуется сначала включить отладку в разделе Настройки -> Media Sync и проверьте
[вкладку «Сеть» в Chrome DevTools](https://www.section.io/blog/chrome-developer-tools-tutorial-network/),
чтобы посмотреть, что происходит в фоновом режиме. Затем сообщайте о фактических
ошибках, поскольку трудно помочь, не зная ошибки, которая вызывает проблему.

## Отзывы

![](https://secure.gravatar.com/avatar/88d0dce2a9ba6fb924de801a17f02f20249c377c02a650cfb73b4ec62ceeaf36?
s=60&d=retro&r=g)

### 󠀁[Works well and best plugin for media rescan](https://wordpress.org/support/topic/works-well-and-best-plugin-for-media-rescan/)󠁿

 [warnasuriya](https://profiles.wordpress.org/warnasuriya/) 26.06.2026

Saved lot of time. Thank you.

![](https://secure.gravatar.com/avatar/faa0d4a7f19cc5e6a62be1b7611bcfb35efc9054d45caac229a608e8c4adec6b?
s=60&d=retro&r=g)

### 󠀁[Works super good.](https://wordpress.org/support/topic/works-super-good-3/)󠁿

 [RaymondDay](https://profiles.wordpress.org/raymondday/) 22.06.2026

If you edit on the command line or something to add media to /var/www/html/wp-content/
uploads then the WordPress Database don’t see them. This plug can scan’s them and
it will show you the ones not in the Database and you check that box and update 
and now the Database has that media then. Works super good. Had no problem with 
mine. Thank you.

![](https://secure.gravatar.com/avatar/8006731d7ac58d1b431a0f826fa2ae72ca8552043e1e46ac7220d89ed5716c3b?
s=60&d=retro&r=g)

### 󠀁[Did exactly what I needed!](https://wordpress.org/support/topic/did-exactly-what-i-needed-42/)󠁿

 [swinggraphics](https://profiles.wordpress.org/swinggraphics/) 20.05.2026

I needed to add some PDFs to the Media Library that were uploaded via FTP, without
changing their location. This plugin did that. 👍

![](https://secure.gravatar.com/avatar/cbd1a5c91b3aa3729370c69226023b710b1912ac6ba8fec130828068514e625c?
s=60&d=retro&r=g)

### 󠀁[Perfect!](https://wordpress.org/support/topic/perfect-10984/)󠁿

 [kiprokoparis](https://profiles.wordpress.org/kiprokoparis/) 14.05.2026

So useful and simple to use

![](https://secure.gravatar.com/avatar/e84927b8e76c78f1fa46711e570fc521393028ec4faadcc0a470c55910179685?
s=60&d=retro&r=g)

### 󠀁[Great Timesaver!](https://wordpress.org/support/topic/great-timesaver-27/)󠁿

 [gopar3](https://profiles.wordpress.org/gopar3/) 01.02.2026

I backed up a site then brought the staging site live, only to find out they’d ‘
forgotten’ several important documents that had been on the old site but not the
new one. I was able to restore the files, but they didn’t show up in my Media Library.
This worked great and saved me a TON of time and headache. Thank you so much.

![](https://secure.gravatar.com/avatar/989824b0e7508599671c7f979acc5f858c1a8313c0ae0e6a11a5d26bb3639805?
s=60&d=retro&r=g)

### 󠀁[So useful!](https://wordpress.org/support/topic/so-useful-143/)󠁿

 [Cyrille Sanson](https://profiles.wordpress.org/css31/) 25.12.2025

The ideal tool for adding media files via FTP to the media library.Thanks a lot 
to the developer!

 [ Посмотреть все 86 отзывов ](https://wordpress.org/support/plugin/media-sync/reviews/)

## Участники и разработчики

«Синхронизация медиа» — проект с открытым исходным кодом. В развитие плагина внесли
свой вклад следующие участники:

Участники

 *   [ erolsk8 ](https://profiles.wordpress.org/erolsk8/)
 *   [ Simon Kane ](https://profiles.wordpress.org/simonkane/)

«Синхронизация медиа» переведён на 6 языков. Благодарим [переводчиков](https://translate.wordpress.org/projects/wp-plugins/media-sync/contributors)
за их работу.

[Перевести «Синхронизация медиа» на ваш язык.](https://translate.wordpress.org/projects/wp-plugins/media-sync)

### Заинтересованы в разработке?

[Посмотрите код](https://plugins.trac.wordpress.org/browser/media-sync/), проверьте
[SVN репозиторий](https://plugins.svn.wordpress.org/media-sync/), или подпишитесь
на [журнал разработки](https://plugins.trac.wordpress.org/log/media-sync/) по [RSS](https://plugins.trac.wordpress.org/log/media-sync/?limit=100&mode=stop_on_copy&format=rss).

## Журнал изменений

#### 1.5.3

 * Compatibility with WordPress 7.1 client-side media processing. Files that WordPress
   7.1 creates alongside an upload (the original HEIC image kept next to its JPEG
   version, and the video and poster image generated from an animated GIF) are now
   correctly recognized as already being in the Media Library, so they are not offered
   for import as duplicates.
 * Also recognizes images edited in the Media Library (crop, rotate) as already 
   imported.
 * Tested for WordPress 7.1.

#### 1.5.2

 * When importing images or PDFs, use embedded metadata title (PDF info dictionary,
   XMP, or EXIF) instead of the filename.

#### 1.5.1

 * Fix file name corruption on Windows caused by `realpath()` returning OS-native
   paths. Path validation now preserves the original file path after security checks
   pass.

#### 1.5.0

 * Security: Fix path traversal vulnerability (CVE-2026-6670) in `sub_dir` and `
   media_items` parameters. File paths are now validated with `realpath()` and restricted
   to the «uploads» directory. Stream wrappers (e.g. `ftp://`, `php://`) are rejected.
   Reported by Drew Webber (mcdruid) via Wordfence.

#### 1.4.9

 * Fix regex to avoid PHP warnings.
 * Better error handling for expected memory or timeout issues when scanning for
   more files than your server is able to handle.
 * Tested for WordPress 6.9.
 * Tested for WordPress 6.9.4 and 7.0.

#### 1.4.8

 * Tested for WordPress 6.8

#### 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

 * Исправлено обнаружение файлов, которые уже есть в базе данных, при использовании
   опции «Сканировать каталог». Проблема возникла в предыдущей версии (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

 * Игнорирование оптимизированных webp-версий исходных изображений (например, .jpg.
   webp) и миниатюры retina (например, -100×100@2x.jpg ) по умолчанию. Все еще возможно
   настроить его с помощью ловушки `media_sync_filter_is_scan_object_ignored`.

#### 1.3.0

 * Новая опция установки произвольного размера пакета. Может помочь при ошибках 
   из-за ограничений сервера (например, max_execution_time).

#### 1.2.9

 * Fix selecting multiple files without clicking on checkbox (e.g. shift-select).
 * Незначительная оптимизация кода.
 * Обновление поддерживаемой версии WordPress до 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](https://make.wordpress.org/core/2019/10/09/introducing-handling-of-big-images-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](https://wordpress.org/support/article/roles-and-capabilities/#capability-vs-role-table)
   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

 * Исправлена сортировка директорий и файлов
 * Незначительные изменения в формулировке текста и чистка кода

#### 0.1.1

 * Исправлена ошибка при активации

#### 0.1.0

 * Исходный функционал плагина

## Мета

 *  Версия **1.5.3**
 *  Обновление: **2 недели назад**
 *  Активных установок: **50 000+**
 *  Версия WordPress ** 5.3 или выше **
 *  Совместим вплоть до: **7.1**
 *  Версия PHP ** 7.4 или выше **
 *  Языки
 * [Chinese (Taiwan)](https://tw.wordpress.org/plugins/media-sync/), [Dutch](https://nl.wordpress.org/plugins/media-sync/),
   [English (US)](https://wordpress.org/plugins/media-sync/), [French (France)](https://fr.wordpress.org/plugins/media-sync/),
   [Russian](https://ru.wordpress.org/plugins/media-sync/), [Spanish (Chile)](https://cl.wordpress.org/plugins/media-sync/)
   и [Spanish (Spain)](https://es.wordpress.org/plugins/media-sync/).
 *  [Перевести на ваш язык](https://translate.wordpress.org/projects/wp-plugins/media-sync)
 * Метки:
 * [ftp](https://ru.wordpress.org/plugins/tags/ftp/)[import](https://ru.wordpress.org/plugins/tags/import/)
   [media](https://ru.wordpress.org/plugins/tags/media/)[server](https://ru.wordpress.org/plugins/tags/server/)
   [uploads](https://ru.wordpress.org/plugins/tags/uploads/)
 *  [Дополнительно](https://ru.wordpress.org/plugins/media-sync/advanced/)

## Оценки

 4.7 из 5 звёзд.

 *  [  79 5-звездный отзыв     ](https://wordpress.org/support/plugin/media-sync/reviews/?filter=5)
 *  [  0 4-звездный отзыв     ](https://wordpress.org/support/plugin/media-sync/reviews/?filter=4)
 *  [  0 3-звездный отзыв     ](https://wordpress.org/support/plugin/media-sync/reviews/?filter=3)
 *  [  3 2-звездный отзыв     ](https://wordpress.org/support/plugin/media-sync/reviews/?filter=2)
 *  [  4 1-звездный отзыв     ](https://wordpress.org/support/plugin/media-sync/reviews/?filter=1)

[Ваш отзыв](https://wordpress.org/support/plugin/media-sync/reviews/#new-post)

[Посмотреть всеотзывы](https://wordpress.org/support/plugin/media-sync/reviews/)

## Участники

 *   [ erolsk8 ](https://profiles.wordpress.org/erolsk8/)
 *   [ Simon Kane ](https://profiles.wordpress.org/simonkane/)

## Поддержка

Решено проблем за последние 2 месяца:

     1 из 1

 [Перейти в форум поддержки](https://wordpress.org/support/plugin/media-sync/)

## Пожертвование

Хотите поддержать улучшение этого плагина?

 [ Пожертвовать на развитие плагина ](https://mediasyncplugin.com/?utm_source=readme&utm_medium=base_plugin&utm_campaign=donate_link)