0

I uploaded some files to an Azure File Storage. Generated the SAS key and appended it to the link as instructed here: Azure File Storage URL in browser showing InvalidHeaderValue

But I am still getting the InvalidQueryParameterValue error when I try to access the files using the link.

Diego
  • 117
  • 11
  • Please edit your question and include the URL of the file you’re trying to access and the error message you’re getting. Please obfuscate account name and the sig part of query string before sharing the URL. – Gaurav Mantri Oct 06 '21 at 23:34

1 Answers1

1

I tried with using the Azure storage explorer in my system

combine the URL from file properties , remove the / from the end the URL Form file with SAS token.

Example URL:

https://testsasex.file.core.windows.net/testsas/test.txt?sv=2020-04-08&ss=f&srt=sco

1) Click on the file ,select the properties next copy the URL from file properties

enter image description here

2) Generate SAS From Azure storage explorer .

Right click on the storage in Storage explorer and select the Generate shared access signature.

enter image description here

3) Select File and add permissions and click on Create.

enter image description here

3) A second Shared Access Signature dialog will then display that lists the blob container along with the URL(Connection String) and QueryStrings you can use to access the storage resource. Select Copy next to the URL you wish to copy to the clipboard

enter image description here

4) After that ,combine the URL (Remove / from URL) from file properties and SAS token

OUTPUT

enter image description here

ShrutiJoshi-MT
  • 1,622
  • 1
  • 4
  • 9
  • Thank you very much! This worked perfectly! I have no idea why, but the problem arises from that slash you said to remove (the one directly after test.txt in your example). I can simply copy the link I was generating earlier, remove that slash and it works! So weird lol. – Diego Oct 07 '21 at 15:05