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:
- Client requests a presigned upload URL
- Client uploads directly to R2
- 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