How to limit the object size when using presigned PUT URL?

For Workers & Pages, what is the name of the domain?

N/A

What is the error number?

N/A

What is the error message?

N/A

What is the issue or error you’re encountering

How to configure a max-upload-limit for an object when using presigned PUT URLs?

What steps have you taken to resolve the issue?

About: I’m using the AWS S3 SDK in Java for generating the presigned PUT URLs.

Scenario: Let’s say a malicious actor sends a legitimate file to my server to get a presigned URL. And, once the presigned URL is obtained, they upload a malicious/huge file with that URL.

Question: Is there any way I could configure the max allowed upload size for a given URL? If yes, could you please kindly share any code snippets.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.