Skip to main content
Reference vendor/cloudflare 1 min read

README

Cloudflare R2 Object Storage

Use R2 for objects such as uploads, media, backups, and static assets. Fetch the linked documentation before implementing; API signatures, configuration, limits, and pricing belong in the current docs.

Choose an access path

  • Use a Workers binding for object access inside a Worker: Workers API setup.
  • Use the S3-compatible API for existing S3 clients or direct client access through presigned URLs: S3 setup. Check supported operations rather than assuming full S3 parity.
  • Decide whether objects need application authorization, temporary access, or public delivery before exposing the bucket. See patterns.md.

Find the task

TaskReference
Bindings, credentials, local development, bucket settingsconfiguration.md
Object operations, metadata, conditions, multipart, CLIapi.md
Uploads, streaming, caching, public delivery, event processingpatterns.md
Pagination, conditional responses, failed uploads, limitsgotchas.md

For other topics, discover pages through the R2 documentation index. Check pricing before estimating costs.

See also

  • Workers for request handling.
  • KV or D1 for application metadata associated with objects.
  • Queues for asynchronous processing of object events.