0

We need to work on asp.net application which will allow upload/download of files to AWS S3 storage bucket.

All contents stored in bucket are non-public.

We figured files can be downloaded directly from AWS S3 storage using pre-signed urls.

We are also trying to figure out a way by which we can upload files also directly to AWS S3 storage bucket.

After looking for sometime we found below article but this article is quite old and i am not able to figure out how actually it works or its latest version.

Is there a better way of uploading files directly from client browser.

Pointer to asp.net code snipped or article would be nice start

Learning
  • 19,469
  • 39
  • 180
  • 373
  • 1
    Following link not that help full http://stackoverflow.com/questions/117810/upload-files-directly-to-amazon-s3-from-asp-net-application – Learning Feb 25 '16 at 11:08
  • Your perception of its helpfulness notwithstanding, I'm afraid that's the correct answer, leading directly to the step-by-step documentation... and this question is a duplicate. – Michael - sqlbot Feb 25 '16 at 13:30

1 Answers1

0

You could authenticate your users with cognito, either with a login provider or with your own identities.

Then, your client browser can use GetCredentialsForIdentity to retrieve temporary AWS credentials associated with a role that you configure to have permissions to write in S3.

Use the AWS javascript SDK to communicate with the S3 API.

Alexis N-o
  • 3,954
  • 26
  • 34