Miller Media Server File Import

外掛說明

Miller Media Server File Import lets WordPress administrators browse files already on the server and import them directly into the Media Library — no need to download and re-upload.

This is useful when:

  • You’ve migrated files via FTP/SFTP and need to register them in WordPress
  • A developer has placed assets on the server that need to be in the Media Library
  • You have files in a non-standard location that should be accessible through WordPress

Features:

  • AJAX-powered file browser with breadcrumb navigation
  • Select individual files or use “Select All” to import in bulk
  • Duplicate detection — files already in the Media Library are flagged
  • Copy or move files from outside the uploads directory
  • Restrict browsing to a configurable root directory (defaults to wp-content)
  • Limit allowed file types via settings
  • Full REST API for programmatic access
  • Works with any user role that has the upload_files capability

Security:

  • Path traversal protection via realpath() boundary checks
  • MIME type validation using WordPress core functions
  • Capability checks on all endpoints (upload_files for browse/import, manage_options for settings)
  • CSRF protection via WordPress REST API nonces

安裝方式

  1. Upload the miller-media-server-file-import folder to /wp-content/plugins/
  2. Activate the plugin through the Plugins menu
  3. Go to Media > Miller Media Server File Import to browse and import files
  4. Optionally configure settings under Settings > Miller Media Server File Import

常見問題集

What file types can be imported?

By default, any file type that WordPress allows for uploads. You can further restrict this with the “Allowed File Types” setting.

Where do imported files end up?

Files already in the WordPress uploads directory are used in place. Files from outside uploads are copied (or moved, based on your settings) into the standard uploads directory.

Will this create duplicate files?

The plugin checks for duplicates before importing. Files that have already been imported are shown as “Already imported” in the browser and cannot be re-imported.

Can I change the root browsing directory?

Yes. Go to Settings > Miller Media Server File Import and set the Root Directory to any path on the server.

Who can use this plugin?

Any user with the upload_files capability can browse and import files. Only administrators (manage_options) can change the plugin settings.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Miller Media Server File Import〉的開發相關工作。

參與者

〈Miller Media Server File Import〉外掛目前已有 1 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Miller Media Server File Import〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.0

  • Initial release
  • AJAX file browser with breadcrumb navigation
  • Bulk import with progress tracking
  • Duplicate detection
  • Copy or move import behavior
  • Configurable root directory and allowed file types
  • REST API endpoints for browse and import