Reputation: 119
I already have a SasBlobUrl(Created by C#). How to upload file using js and my sasUrl. Could i create a blockBlobClient from sasUrl?
Upvotes: 0
Views: 139
Reputation: 136146
Could i create a blockBlobClient from sasUrl?
Yes, you can. You will use BlockBlobClient(string, PipelineLike)
constructor to create a new instance of BlockBlobClient
by passing the SAS URL as the first parameter.
From the same link:
A URL string pointing to Azure Storage block blob, such as "https://myaccount.blob.core.windows.net/mycontainer/blockblob". You can append a SAS if using AnonymousCredential, such as "https://myaccount.blob.core.windows.net/mycontainer/blockblob?sasString".
Upvotes: 1