直接从ASP.NET应用程序上传文件到Amazon S3 [英] Upload files directly to Amazon S3 from ASP.NET application

查看:178
本文介绍了直接从ASP.NET应用程序上传文件到Amazon S3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的ASP.NET MVC应用程序会占用大量的带宽和存储空间。我怎样才能建立一个ASP.NET上传页面,以便上传的文件,用户将直接进入到Amazon S3不使用我的Web服务器的存储和带宽?

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?

推荐答案

更​​新2016年2月:

Update Feb 2016:

AWS的SDK可以处理这个多很多了。请查看如何构建形式和的如何构建签名。这应该从需要在您的最终带宽prevent你,假设你需要把它发送到S3之前做任何内容自己处理。

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.

这篇关于直接从ASP.NET应用程序上传文件到Amazon S3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆