Skip to main content
Backdrift provides secure file storage for uploads like profile pictures, documents, and attachments.

Defining Storage

Describe what files you need to store:

How It Works

  1. Client requests a signed upload URL
  2. Client uploads directly to storage (not through your API)
  3. Client saves the file reference to the entity
  4. Files are retrieved via signed URLs or CDN

Upload Flow

1. Request Upload URL

Response:

2. Upload File

3. Save Reference

Download Flow

Get Signed URL

Response:

File Restrictions

Configure allowed file types and sizes:
This generates:
  • Content-type validation
  • File size limits
  • Optional virus scanning

Storage Configuration

Backdrift configures storage with security best practices:

Lifecycle Policies

Configure automatic cleanup:

CDN (Optional)

For public files (like product images), enable CDN:
This creates a CloudFront distribution with:
  • Global edge caching
  • HTTPS
  • Automatic compression
  • Custom domain support

Image Processing

For images, you can request transformations:

Multi-Tenant Storage

In multi-tenant mode, files are isolated by organization:
A user from Org-123 cannot access files from Org-456.

Security

All uploads and downloads use time-limited signed URLs. Direct bucket access is blocked.
Files are encrypted at rest using AES-256 server-side encryption.
Optional: Scan uploads for malware before accepting.
File access follows the same authorization rules as your entities.

Example: Document Management

This generates:
  • S3 bucket with versioning enabled
  • 30-day lifecycle policy for deleted objects
  • Signed URLs for secure upload/download
  • Content-type validation

Lovable Integration

Learn how to build frontends with file uploads in Lovable.