Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Can you create a size limit on the pre-signed URL

Yes, pre-signed URL can have the `Content-Length` set and amazon S3 checks it. However, note that this is true for Amazon S3 but not for others like BackBlaze or R2. Last time I tried, BackBlaze didn't support it.



Only with createPresignedPost, not with getSignedUrl.


Presigned post lets you set content-length-range: https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-authen... You can specify content length on presigned PUTs, but it needs to be set as a header and added to the signed headers for SIGv4. It can't be set as a query param.




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

Search: