Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Upload files directly to Amazon S3 from ASP.NET application

Tags:

asp.net

My ASP.NET MVC application will take a lot of bandwidth and storage space. How can I setup an ASP.NET upload page so the file the user uploaded will go straight to Amazon S3 without using my web server's storage and bandwidth?

like image 996
ycseattle Avatar asked Sep 22 '08 21:09

ycseattle


People also ask

How do I upload files to Amazon S3?

In the Amazon S3 console, choose the bucket where you want to upload an object, choose Upload, and then choose Add Files. In the file selection dialog box, find the file that you want to upload, choose it, choose Open, and then choose Start Upload. You can watch the progress of the upload in the Transfer pane.

What is the best way for the application to upload the large files in S3?

When you upload large files to Amazon S3, it's a best practice to leverage multipart uploads. If you're using the AWS Command Line Interface (AWS CLI), then all high-level aws s3 commands automatically perform a multipart upload when the object is large. These high-level commands include aws s3 cp and aws s3 sync.

Can we upload CSV file to S3 bucket?

Once you have created your S3 bucket and IAM user, you can set up the data export in the Adjust dashboard. Navigate to your app and select your app options caret ( ^ ). Navigate to All Settings > Raw Data Export > CSV Upload. Toggle the switch to ON.


1 Answers

Update Feb 2016:

The AWS SDK can handle a lot more of this now. Check out how to build the form, and how to build the signature. That should prevent you from needing the bandwidth on your end, assuming you need to do no processing of the content yourself before sending it to S3.

like image 58
Jonathan Rupp Avatar answered Sep 19 '22 19:09

Jonathan Rupp