MediaFlock

MediaFlock

توسط

MediaFlock scans your WordPress posts for externally hosted media files and imports them directly into your WordPress media library. After import, it automatically replaces the old external URLs in your post content with the new local URLs, ensuring all your media is served from your own site.

How It Works

The plugin uses five complementary URL extraction strategies to find external files in your content:

  1. Regex pattern matching — Scans raw post content for URLs matching configured file extensions.
  2. HTML anchor tag parsing — Extracts URLs from <a href> links pointing to external files.
  3. Media tag parsing — Finds external sources in <img>, <video>, <audio>, and <source> elements.
  4. Srcset attribute parsing — Detects external images referenced in responsive srcset attributes on <img> and <source> tags.
  5. CSS background-image parsing — Extracts URLs from background-image: url(...) declarations in inline styles and <style> blocks.

Key Features

  • Batch scanning — Processes posts in configurable batches (10-200 per request) to handle sites of any size.
  • Dry run mode — Check file sizes via HEAD requests before committing to an import.
  • Duplicate prevention — Already-imported files are detected and skipped automatically.
  • Dead link detection — URLs that returned errors on previous attempts are tracked and auto-skipped.
  • Resume interrupted scans — If a scan is interrupted (browser closed, timeout), resume exactly where you left off.
  • Progress tracking — Real-time progress bars for scanning, importing, and dry runs.
  • Import logs — Every import attempt is logged with status (success, error, skipped), timestamps, and details.
  • CSV export — Download filtered logs as CSV for offline analysis or reporting.
  • Retry failed imports — One-click retry of all previously failed imports.
  • Dashboard statistics — Overview of total imports, success/error/skipped counts, disk space used, and top errors.
  • Configurable file types — Choose which file extensions to scan for using a Select2 tagging interface.
  • Multiple URL filters — Restrict scanning to specific external servers by adding one or more base URLs.
  • Post type and status filters — Target specific post types and statuses (publish, draft, pending, private, future).
  • Quick Scan — Spot-check a single post by entering its ID or URL.
  • Permission levels — Restrict plugin access to administrators only or open it to editors and above.
  • Internationalization — Fully translatable with English and Georgian (ka_GE) translations included.
  • Clean uninstall — Removes all database tables and options when deleted.

URL Replacement

After importing a file, the plugin replaces the external URL in your post content. It handles multiple URL encoding variants to ensure no references are missed:

  • Standard URLs
  • HTML entity-encoded URLs (&amp; instead of &)
  • URL-encoded paths (%20 for spaces)
  • Fully encoded path segments
  • Protocol-relative URLs (//example.com/...)
  1. Upload the mediaflock folder to the /wp-content/plugins/ directory, or install the plugin through the WordPress Plugins screen.
  2. Activate the plugin through the “Plugins” screen in WordPress.
  3. Navigate to MediaFlock to begin scanning your posts for external media files.
  4. (Optional) Go to MediaFlock > Settings to configure file types, external server URLs, batch size, and permission levels before scanning.

سوالات متداول

What file types are supported?

The plugin supports a configurable list of file extensions. The defaults are: jpg, jpeg, png, gif, pdf, doc, docx, zip, mp4, and mp3. You can add or remove extensions from the Settings page using the Select2 tagging interface.

Does it replace URLs in post content?

Yes. After a file is successfully imported into the WordPress media library, the plugin automatically replaces the old external URL with the new local URL in the post content. It handles all common encoding variants including HTML entity-encoded, URL-encoded, fully encoded paths, and protocol-relative URLs.

What happens if an import fails?

Failed imports are logged with an “Error” status along with the error message. You can view all errors on the Logs page by filtering to the “Error” tab. A “Retry Failed” button lets you re-attempt all failed imports in one click with progress tracking.

Can I limit which external servers to scan?

Yes. On the Settings page, you can add one or more external server base URLs using the “External Server URLs” field. Only URLs that start with one of these base URLs will be included in scan results. This is useful when you want to import files from specific CDNs or old domains only.

Does it work with custom post types?

Yes. The scan form displays all public post types registered on your site. You can select one or more post types to scan using the dropdown. Pages, posts, and any custom post type (e.g., products, portfolios) are all supported.

Is it safe to use on a large site?

Yes. The plugin is designed for sites of any size. Posts are processed in configurable batches (default 50, adjustable from 10 to 200). An SQL pre-filter at the database level skips posts that cannot contain external file URLs, significantly reducing processing time. If a scan is interrupted, you can resume from exactly where it left off. The dry run mode lets you check file sizes before committing to any imports.

What languages are supported?

The plugin ships with English and Georgian (ka_GE) translations. It is fully internationalized and can be translated into any language using the included .pot file. Translators can generate .po and .mo files for their locale using tools like Poedit or Loco Translate.

تصویری برای این آیتم موجود نیست.
نظری برای این آیتم موجود نیست.
0 0 رای ها
امتیازدهی
اشتراک در
اطلاع از
0 نظرات
قدیمی‌ترین
تازه‌ترین بیشترین رأی
بازخورد (Feedback) های اینلاین
مشاهده همه دیدگاه ها
نسخه حجم فایل SHA256 تغییرات دانلود
1.0.32 66 کیلوبایت -
دانلود
×
بدون امتیاز

قیمت:

رایگان

نگارش

1.0.32

آخرین انتشار

22 اردیبهشت 1405

آخرین بروزرسانی

1 ماه پیش

نصب های فعال

-

نگارش وردپرس

وردپرس 5.0+

تست شده از نسخه

وردپرس 6.9.4

نگارش PHP

PHP 7.2+

نسخه ها

1 نسخه