问题描述
我已经创建了Windows Azure中的文件存储和上传一些文件。
I have created a file storage in Windows azure and uploaded some documents.
这是我到我的文件的路径看起来像
This is what my path to my file looks like https://mySite.file.core.windows.net/notes/txt.pdf
当我试图从我的存储访问的文件我得到这个错误:
When I try to access the a file from my storage i get this error:
推荐答案
这是预期的行为。请注意,这允许存储在文件存储的文件没有匿名访问。访问需要授权。既然你试图未经授权访问资源,你得到这个错误。
This is intended behavior. Please note that there's no anonymous access allowed for files stored in file storage. The access needs to be authorized. Since you're trying to access the resource without being authorized, you're getting this error.
授权访问的一种方法是与读$ C的文件/股的水平创建一个
共享访问签名(SAS)
$ C>许可,然后再使用SAS URL访问该文件。
One way of authorizing the access is to create a Shared Access Signature (SAS)
on a file/share level with Read
permission and then using that SAS URL to access the file.
这篇关于不能访问Windows Azure的文件存储文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!