Hacker News new | past | comments | ask | show | jobs | submit login

> Occasionally, limits are set on the <input/> element for file types.

Since this isn't enforced by the presigned PUT URL, you can't trust that the limits have been respected without inspecting whatever was uploaded to S3. You can get a lot more flexibility in what is allowed if you use an S3 presigned POST, which lets you set minimum and maximum allowed content lengths.

[0]: https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-HTTPPO...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: