Object Storage
Secure file uploads with CDN delivery, granular access control policies, on-the-fly image transformations, and virus scanning.
Rach.Dev Object Storage provides S3-compatible file storage tightly integrated with your database and auth system. Upload files via a simple API or client library, and they are stored in your project's dedicated storage bucket. Access control policies work identically to database RLS — you write rules that reference the authenticated user's JWT claims, so a user can only access their own uploads unless you explicitly grant broader access.
Every uploaded file is served through a global CDN with edge caching, so your users get fast downloads regardless of their location. Image files can be transformed on the fly — resize, crop, convert format, adjust quality — via URL parameters. These transformations are cached at the edge, so the first request generates the variant and subsequent requests are served instantly. This eliminates the need for a separate image processing pipeline.
Virus scanning runs automatically on upload. Files that fail the scan are quarantined and never served. You can set per-bucket size limits, file type restrictions, and upload rate limits. Signed URLs provide time-limited access to private files. Multipart uploads handle large files efficiently with automatic retry on failure. Storage usage is metered per GB with no egress fees within the included CDN bandwidth.
Key Benefits
- S3-compatible API with auth-aware access control policies matching your database RLS
- Global CDN delivery with edge caching for fast downloads worldwide
- On-the-fly image transformations (resize, crop, format conversion) via URL parameters
- Automatic virus scanning on upload with quarantine for failed files
- Signed URLs for time-limited access to private files
- Multipart uploads with automatic retry for reliable large file handling