Full Stack Developer
hardfile-storage-s3-cdn
How do you design file storage for uploads (S3-style) with secure access?
Answer
A robust design uses object storage + secure URLs.
**Approach:**
- Upload directly to object storage using pre-signed URLs
- Store metadata in DB (owner, path, mime, size)
- Serve via CDN
- Enforce authorization (private buckets, signed URLs)
- Validate file type/size and scan if needed
This avoids overloading app servers and scales well.
Related Topics
StorageSecuritySystem Design