How to restrict upload size of an object in AWS S3 bucket using presigned URLs?

Viewed 170

I would like to share pre-signed URL with my clients to upload any object to my s3 bucket. I would like to add validations for the maximum size a user can upload using the presigned URL. Also, if possible, I want my users to upload a particular file type only? How can I implement that?

I am using AWS Java SDK. If not through SDK, can we create a bucket level policy that ensures a upload request fails if the object size increases a certain limit?

0 Answers
Related