System Design · Middle · Question 22 of 75
How should user file uploads to cloud storage be organized?
- ✓Correct answer: Get a signed URL and upload directly to storage
- 2Send the file as base64 inside JSON to the API server
- 3Store files in
localStorageand sync them overnight
Explanation
A presigned URL lets the browser upload the file directly to S3/GCS without loading the API server or exposing keys. The backend checks permissions and issues a time-limited URL, then confirms the upload. Base64 increases size by a third.