如何上传到Azure存储后得到的文件 [英] How to get a file after uploading it to Azure Storage

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

问题描述

我已经上传的文件大多是媒体文件天青的文件存储,这我能在Azure中的资源管理器,看看为好。但是,当我查看该文件为匿名用户,我无法查看文件。试图检查权限设置为好,但无济于事。

任何帮助将受到欢迎:)


解决方案

Azure的文件有共享访问签名(SAS)。这是您与存储帐户键,即可以访问特定URL计算密钥。下面是一个例子(存储帐户名称在这里混淆):

<$p$p><$c$c>https://mystorageaccount.file.core.windows.net/sampleshare/2.png?sv=2015-04-05&sr=f&si=sampleread&sig=Zq%2BfflhhbAU4CkCuz9q%2BnUFEM%2Fsg2PbXe3L4MeCC9Bo%3D&sip=0.0.0.0-255.255.255.255

您对如何创建一个SAS与的https://azure.microsoft.com/en-us/documentation/articles/storage-dotnet-how-to-use-files/, §生成一个文件或文件共享一个共享访问签名。

您还可以使用一些工具做交互。例如, CloudXPlorer 有这个功能。

I had uploaded files mostly media files to Azure's File Storage, which I am able to see in Azure's Explorer as well. But when I view the file as anonymous user, I am not able to view the file. Tried to check with Permissions setting as well, but to no avail.

Any help would be welcomed :)

解决方案

Azure files have Shared Access Signatures (SAS). This is a key that you compute with the storage account key, that gives access to a particular URL. Here is an example (storage account name is obfuscated here):

https://mystorageaccount.file.core.windows.net/sampleshare/2.png?sv=2015-04-05&sr=f&si=sampleread&sig=Zq%2BfflhhbAU4CkCuz9q%2BnUFEM%2Fsg2PbXe3L4MeCC9Bo%3D&sip=0.0.0.0-255.255.255.255

You have sample code on how to create a SAS with Azure files at https://azure.microsoft.com/en-us/documentation/articles/storage-dotnet-how-to-use-files/, §"Generate a shared access signature for a file or file share".

You can also do it interactively with a number of tools. For instance, CloudXPlorer has this feature.

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

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