question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Content-Disposition header not persisted on blob upload

See original GitHub issue

When 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:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
erezvani1529commented, Oct 18, 2016

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!

0reactions
erezvani1529commented, Dec 23, 2016

Hi @jarroda , @guilmori ,

Closing this issue as the fix is included in the latest published package on nuget v8.0.0

Thanks!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found