Miller Media Server File Import
·
Browse files on the server and import them into the WordPress Media Library.
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_filescapability
Security:
- Path traversal protection via
realpath()boundary checks - MIME type validation using WordPress core functions
- Capability checks on all endpoints (
upload_filesfor browse/import,manage_optionsfor settings) - CSRF protection via WordPress REST API nonces
