Skip to content

Limit an upload filesize with a Pre-signed URL  #424

Closed
@hequs

Description

@hequs

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:

  1. user calls the server API method to retrieve a Pre-singed Upload Url
  2. user uploads some file to AWS S3 directly with the url
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    guidanceQuestion that needs advice or information.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions