Wrenio Media Offload
Move your WordPress media library to Cloudflare R2 — and serve every attachment from R2 (or a custom domain mapped to your bucket) without changing how WordPress works elsewhere. What it does Uploads new media to R2 as attachments are added (via scheduled background sync). Uploads existing media in
Move your WordPress media library to Cloudflare R2 — and serve every attachment from R2 (or a custom domain mapped to your bucket) without changing how WordPress works elsewhere.
What it does
- Uploads new media to R2 as attachments are added (via scheduled background sync).
- Uploads existing media in batches via the Bulk Sync page.
- Rewrites attachment, srcset , and in-content image URLs to the R2 (or CDN) origin.
- Optionally deletes the local file after a successful upload to save disk inodes.
- Fills in thumbnail metadata for attachments whose local file has been deleted.
- Reconciles R2 object keys with local paths if they have drifted.
- Repairs filename-level mismatches between WordPress and R2.
- Identifies orphan R2 objects that are no longer referenced by any attachment.
Credentials
Credentials can be stored in the database via the settings page, or — recommended — defined as constants in wp-config.php :
define( 'WRENIO_R2_ACCOUNT_ID', 'your-account-id' ); define( 'WRENIO_R2_ACCESS_KEY_ID', 'your-access-key' ); define( 'WRENIO_R2_SECRET_ACCESS_KEY', 'your-secret-key' ); define( 'WRENIO_R2_BUCKET_NAME', 'your-bucket-name' ); define( 'WRENIO_R2_PUBLIC_URL', 'https://media.example.com' );
Constants take priority over values stored in the database.
The reconciliation tool
R2 object keys are derived from the stable _wp_attached_file meta. If keys drift away from an attachment’s physical file path — for example, due to external tooling or imported content — the Reconcile page detects the drift and previews the realignment plan.
Run Wrenio Media Offload → R2 Reconcile → “Start Dry Run” to scan and preview a fix plan. (Live realignment that moves R2 objects to their correct keys is available in the Pro version — see below.)
Cleanup tools
- Filename Cleanup detects attachments where the filename portion of _wp_attached_file differs from the R2 key (typically caused by double-dot or similar normalization mismatches) and repairs the WordPress meta to align with R2.