Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure file storage access document with direct link

I'm trying to access files which I'm programmatically uploading to the azure file storage.

But when pasting the direct url:

enter image description here

Any idea how I can directly get that file when I want to download from Azure file storage?

like image 391
Laziale Avatar asked Sep 27 '16 09:09

Laziale


1 Answers

Direct access to files stored in file service is not allowed because the share containing these files has Private ACL and unlike blob containers there's no way to change the ACL of a share.

What you would need to do is create a Shared Access Signature (SAS) on the file that you want to access directly and use that SAS URL. When creating the SAS, please ensure that at least Read permission is included in the SAS as this permission is required to read/download the file.

Please see https://azure.microsoft.com/en-in/documentation/articles/storage-dotnet-how-to-use-files/#develop-with-file-storage (Generate a shared access signature for a file or file share) for more details on how you can create a SAS on a file.

like image 173
Gaurav Mantri Avatar answered Oct 16 '22 22:10

Gaurav Mantri