Quickback Docs

Using R2

File uploads, downloads, and role-based access with Cloudflare R2

Cloudflare R2 provides S3-compatible object storage for file uploads in the Quickback Stack.

Upload Flow

The generated API includes upload endpoints:

  1. Client requests a presigned upload URL
  2. Client uploads directly to R2
  3. API stores the file reference in D1

Download Flow

Files can be accessed via the generated download endpoint with role-based access control.

Role-Based Access

File access respects the same security layers as your API:

  • Firewall — Users can only access files belonging to their organization
  • Access — Role-based download permissions
  • R2 Setup — Bucket and bindings configuration
  • Avatars — Avatar upload UI

On this page