Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/pds-uk/wp-offload-cloudflare-r2-plugin/archive/refs/heads/main.zipUpdates itself. It ships its own updater (Update URI header), so new versions appear under Dashboard → Updates.
WP Offload Cloudflare R2
Description
This plugin adds support for Cloudflare R2 storage to WP Offload Media, allowing media files to be stored and served from Cloudflare's R2 storage service.
Features:
- Seamlessly integrates Cloudflare R2 as a storage provider in WP Offload Media.
- Automatically serves media from Cloudflare's R2 service with a configurable public domain for delivery.
- Symbolic link creation for custom Cloudflare R2 icons.
Installation
1. Upload the plugin files to the /wp-content/plugins/wp-offload-cloudflare-r2-plugin directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Ensure the following configuration variables are set in your wp-config.php file:
php
define('R2DOMAIN', 'your-r2-url.r2.dev');
define('R2ENDPOINT', 'https://your-r2-endpoint.r2.cloudflarestorage.com');