如何存储在Windows Azure上的网站文件? [英] How do I store files on Windows Azure Web Site?

查看:103
本文介绍了如何存储在Windows Azure上的网站文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚看了一下Windows Azure的网站的文章,想评估此服务。我公司刚刚开发一个基于ASP.NET MVC的网站,使我们的客户下载我们提供的文件和上传文件。

I just read an article about Windows Azure Web Site and would like to evaluate this service. My company just developed an ASP.NET MVC based website that enables our customers to download files we provide as well as upload files.

基于我们发送URL两项工程。
工作流程很简单:
1.登录我们的网站,上传文件和检索的网站生成的链接
2.我们通过电子邮件发送链接给客户
3.客户可以使用该链路而无需验证和方便地下载该文件。

Both works based on URLs that we send. The workflow is easy: 1. We login to our website, upload a file and retrieve a link generated by the site 2. We send the link to the customer by e-mail 3. The customer can use this link without the need to authenticate and easily download the file.


1.登录到网站上进行检索,并通过该网站产生的上传链接
2.我们通过电子邮件发送链接给客户
3.客户可以使用该链路而无需验证并轻松上传的文件。

Or 1. We login to out website and retrieve an upload link generated by the site 2. We send the link to the customer by e-mail 3. The customer can use this link without the need to authenticate and easily upload a file.

我们目前正在当地举办我们自己的基础设施,这个网站。该网站是很少使用,这些文件并不大。我们只是将其存储在文件服务器我们

We are currently hosting this website locally in our own infrastructure. The Website is used rarely and the files are not that big. We are storing them simply on our fileserver.

我想了解如何主办WAWS本网站的第一个问题我已经是:做什么选择我有实际存储的文件?第二:我们的网站发送通知邮件给我们内部当客户下载或上传文件。这可能与WAWS?

I would like to find out how to host this website on WAWS and the first question I have is: What options do I have for actually storing the files? Second: Our website sends notification e-mails to us internally when a customer downloaded or uploaded a file. Is this possible with WAWS?

推荐答案

如果你想在Windows Azure中(网站)坚持文件,你应该使用的 Blob存储。的功能,你可能会喜欢:

If you want to persist files in Windows Azure (Web Sites) you should use Blob Storage. Features that you might like:


  • 在这里上传的所有文件获得类似这样的网址:<一href=\"http://myaccount.blob.core.windows.net/somecontainer/somefile.txt\">http://myaccount.blob.core.windows.net/somecontainer/somefile.txt

  • 您可以使用自定义CNAME获得<一个href=\"http://files.mycompany.com/somecontainer/somefile.txt\">http://files.mycompany.com/somecontainer/somefile.txt

  • 您可以应用安全通过href=\"http://msdn.microsoft.com/en-us/library/windowsazure/ee772877.aspx\">共享访问签名
  • Blob存储是很便宜

  • 每个斑点是在Windows Azure的数据中心横跨三台电脑复制。写一个blob更新所有三个副本,所以后来读不会看到不一致的结果。

  • 地域复制复制是数百英里外的两个位置之间以及同一区域(即在您的Windows Azure Blob和表数据,中北部和中南部美国,北欧和欧洲西部之间,在东亚和之间东南亚)。

  • 限制为每个100TB的存储帐户

发送另一方面电子邮件是不可能与Windows天青。你需要通过第三方来做到这一点。我个人使用亚马逊SES SendGrid 也是一个不错的选择,因为他们有天青用户特殊产品。

Sending emails on the other hand is not possible with Windows Azure. You'll need to do this through a third party. I personally use Amazon SES but SendGrid is also a good option since they have a special offering for Azure users.

这篇关于如何存储在Windows Azure上的网站文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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