WS R2 Storage

v1.0.0WordPressWP 7.1PHP 7.4+GPL-2.0-or-later

Stores the WordPress media library in Cloudflare R2. New uploads go to the bucket with every image size and are served from the bucket's public URL. The existing library can be moved to the bucket or pulled back, and files already in the bucket can be imported into the media library. No bundled SDK and no Composer dependencies: the AWS Signature V4 client is built in.

Download v1.0.0

Features

How it works

The plugin hooks the attachment metadata: each time WordPress generates or updates it, the files it names (original, scaled original, every size) are compared with the list already uploaded for that attachment, and the missing ones are sent to the bucket. The first upload is all-or-nothing, so a failed upload leaves the attachment local. Each attachment remembers the prefix it was stored under, so changing the prefix later does not break older files. Object keys mirror the uploads folder: <prefix>/2026/10/photo.jpg.

Requirements

Install

  1. Download the zip above.
  2. In WordPress go to Plugins, Add New, Upload Plugin, and upload it.
  3. Activate WS R2 Storage from the Plugins screen.
  4. Settings, R2 Storage: enter the Account ID, the Access Key ID, the Secret Access Key, the bucket, the folder prefix and the public URL. Save, then use Test Connection.
  5. Upload as usual. Use the Migrate Files tab to move the existing library.

Updates are self-hosted: the plugin reads its Update URI header and checks https://websqu.ad/updates/ws-r2-storage.json. New versions show up in the standard WordPress updates screen.

Good to know

Changelog

websquad — brandsquad OÜ, Estonia. Support: [email protected]

WP Plugins · Homepage