All Questions
Handling Large Blobs medium

When using Presigned URLs for user uploads, how do you prevent a user from uploading a 1TB virus instead of a 5MB image?

  1. A You cannot.
  2. B Trust the user.
  3. C The Presigned URL generation call includes constraints: `Content-Length-Range` and `Content-Type`. S3 enforces these limits during the upload.
  4. D Use a firewall.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions