Yctvn Media Offload for Cloudflare R2 seamlessly integrates your WordPress media library with Cloudflare R2 Storage, providing enterprise-grade CDN delivery at a fraction of the cost of traditional solutions.
đ¸ New to Cloudflare R2? Check out the Screenshots section for a complete visual setup guide with step-by-step instructions!
Visual Guide: See the Screenshots section below for a complete step-by-step visual guide!
Follow these 3 simple steps to connect your WordPress site to Cloudflare R2:
Step 1: Create R2 Bucket
1. Log in to Cloudflare Dashboard
2. Click on âR2â in the left sidebar
3. Click âCreate bucketâ
4. Enter a unique bucket name (e.g., âmy-wordpress-mediaâ)
5. Choose a location (optional)
6. Click âCreate bucketâ
Step 2: Get Your Credentials
You need 4 pieces of information from Cloudflare:
A. Account ID:
â In R2 dashboard, look at the top right corner
â Copy the âAccount IDâ (format: 32 alphanumeric characters)
B. Access Key ID & Secret Access Key:
1. In R2 dashboard, click âManage R2 API Tokensâ
2. Click âCreate API tokenâ
3. Give it a name (e.g., âWordPress Media Pluginâ)
4. Under Permissions, select âObject Read & Writeâ
5. (Optional) Under âSpecify bucket(s)â, you can limit to your specific bucket
6. Click âCreate API tokenâ
7. IMPORTANT: Copy and save both:
â Access Key ID (shows immediately)
â Secret Access Key (shows only once â save it now!)
C. Bucket Name:
â The name you created in Step 1 (e.g., âmy-wordpress-mediaâ)
D. Public URL (CDN URL):
â Go to your R2 bucket Settings
â Under âPublic accessâ, click âAllow Accessâ
â Your public URL will be: https://pub-[hash].r2.dev
â OR connect a custom domain under âCustom Domainsâ (e.g., https://cdn.yoursite.com)
Step 3: Configure Plugin
1. Install and activate this plugin
2. Go to Settings Yctvn Media Offload
3. Enter all 4 credentials from Step 2:
â Account ID
â Access Key ID
â Secret Access Key
â Bucket Name
â Public URL (your R2 public URL or custom domain)
4. Check âAuto Offloadâ to automatically upload new media
5. Check âEnable URL Rewriteâ to serve media from R2/CDN
6. Click âSave Settingsâ
7. Use âBulk Syncâ to upload existing media
For support, please use the WordPress.org support forum.
If you find this plugin helpful, consider buying me a coffee â
Your support helps maintain and improve this plugin!
This plugin is open source and welcomes contributions from the community.
This plugin does not collect any personal data. Media files are transferred directly between your WordPress site and your Cloudflare R2 account.