Question

How to restrict file size with aws-sdk getSignedUrl

Hello, I’m using digital ocean to allow users to upload videos using signed urls. However i wanna make sure the the file is the file size it request to upload, and current after hours of searching for an answer i cannot find one.

So my question is, how can i prevent users to steal the signed url and upload a massive file?

PS: I’m using ‘@aws-sdk/s3-request-presigner’ with the function getSignedUrl() as the example from DO says


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer