Azure / Azure/azure-rest-api-specs
Failed to upload files to Azure Storage File Service with SAS
- Dominant language
- TypeSpec
- Stars
- 3.1k
- Forks
- 5.9k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 424
Description
Hi,
I want to use SAS URL to upload files to Azure Storage. I have succeeded to do it in Azure Storage Blob Service. But when I want to repeat it in File Service. My requests become really unstable. I make a PUT request using URL like "https://fileshare.file.core.windows.net/test/file.txt?sv=2018-03-28&ss=bfqt&srt=sco&sp=rwdlacup&se=2018-12-26T15:31:23Z&st=2018-12-26T07:31:23Z&spr=https&sig=**". I put the uploaded file in the request body, and provide some headers like "Content-Length", "x-ms-type", "x-ms-content-length" which are required by my failed trying. I have succeeded to upload the file in this way a few times. But most time I will get error like below.
```
InvalidHttpVerb
The HTTP verb specified is invalid - it is not recognized by the server.
RequestId:b1bedbe3-901a-0059-7eed-9ccdc9000000
Time:2018-12-26T07:33:03.6477319Z
***PUT
```
`***` is the content of the uploaded file. Do I miss anything here?
Contributor guide
Research direction
No repository file, test, or entry point is named. Start by reviewing the reported PUT request, SAS URL, headers, and InvalidHttpVerb response, then reproduce the upload against Azure Storage File Service and compare it with the successful Blob Service request. Done means identifying whether the request or the REST specification needs correction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure
- Domain
- api, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100