The R2 Storage extension offloads your media library uploads to Cloudflare R2 object storage to save hosting disk space and load images directly through a fast CDN proxy.
Step 1: Create a Bucket in Cloudflare R2
- Log in to your Cloudflare Dashboard and select R2.
- Click Create Bucket, enter a unique bucket name, and click Create.
Step 2: Generate API Access Token
- In Cloudflare R2, click Manage R2 API Tokens.
- Click Create API Token. Select Edit permission and click Create.
- Copy the generated Access Key ID, Secret Access Key, and your Account ID.
Step 3: Configure settings in Divi Optimizer
- Go to Divi Optimizer > Extensions and enable R2 Storage.
- Navigate to the R2 Storage Settings tab.
- Paste your Account ID, Access Key ID, Secret Access Key, and Bucket Name.
- Click Save & Test Connection to verify settings.
Step 4: Run Media Migration
Use the Bulk Migration tab to sync and move all your existing WordPress media library files directly to Cloudflare R2.
