S3 Files
All topics

Connect to Cloudflare R2

R2 is Cloudflare's S3-compatible storage. S3 Files connects with the S3 credentials of an R2 API token and your Cloudflare account ID.

Connect to Cloudflare R2

Get S3 Files

1. Create an R2 API token

In the Cloudflare dashboard, open R2 object storage → Overview, choose Manage next to API Tokens under Account Details, and create an account API token. Admin Read & Write lets S3 Files list your buckets; Object Read & Write can be limited to some buckets, but then you type the bucket name.

Copy both keys right away, as Cloudflare shows the secret only once; Cloudflare's guide to R2 API tokens has the details.

2. Find the account ID

The account ID is the 32 character hexadecimal string under Account Details on the same page, and the start of the endpoint shown with the token. Enter only the ID.

3. Fill in the server

Pick CloudFlare R2, paste the two keys and enter the ID in Account ID. Pick European Union (EU) under Jurisdiction only for a bucket created in the EU jurisdiction. Then pick the bucket with the chevron or type its name.

Troubleshooting