Content-Disposition header not persisted on blob upload
See original GitHub issueWhen uploading a new blob, the Content-Disposition
header does not persist. Setting Content-Type, Metadata etc seems to persist when uploading a new blob, but the only way the Content-Disposition
header persists is with a call to SetProperties
.
I am uploading a new blob like so:
var blob = container.GetBlockBlobReference(blobName);
blob.Properties.ContentType = someContentType;
blob.Properties.ContentDisposition = someContentDisposition;
await blob.UploadFromStreamAsync(myStream);
await blob.FetchAttributesAsync();
Assert.True(blob.Properties.ContentType == someContentType); // Passes
Assert.True(blob.Properties.ContentDisposition == someContentDisposition); // Fails
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Azure Blob Storage V2 does not deliver content-disposition ...
Content-Disposition header in response is not sent when the download URL is not authenticated. For the client to receive Content-Disposition.
Read more >Fixing Azure Blob Storage Content Disposition - DevTrends
Setting the content disposition header using the Azure Blob Storage Client Library is very simple. You only need to add one line to...
Read more >Fix Content-Disposition header not working in Azure Blob ...
Prior to this commit, files downloaded in Azure Blob Storage would not have a Content-Disposition header sent, which would cause files to be...
Read more >Put Blob (REST API) - Azure Storage
The Content-Disposition response header field conveys additional information about how to process the response payload, and you can use it to ...
Read more >Direct download from Azure Blob storage using Content ...
Luckily you can set the content-disposition header. This header tells the client what to do with the file, like showing it inline or...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @jarroda,
Thanks for bringing this issue to our attention. We have a fix for it which will be rolled out with our 8.0 release(we will update this thread with the respective PR).
Thanks!
Hi @jarroda , @guilmori ,
Closing this issue as the fix is included in the latest published package on nuget v8.0.0
Thanks!