Closed
Description
I'm using S3 to store users' files on my website. In order to optimize server load, I've configured a direct file upload from browser for my users. The flow is the following:
- user calls the server API method to retrieve a Pre-singed Upload Url
- user uploads some file to AWS S3 directly with the url
- user call another API method to notify server, that the upload was finished
I want to protect my S3 storage from obusing, so I need the way to limit the maximum file size. Unfortunately, I have not found a way to do this via .Net SDK.
I've read about restriction polices for HTTP POST (http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-post-example.html). Can it be applied on a Pre-signed Url flow.
Regards, Vadim.