Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting Content-Type of an Azure blob #47

Open
damienturnbull opened this issue Nov 28, 2023 · 1 comment
Open

Setting Content-Type of an Azure blob #47

damienturnbull opened this issue Nov 28, 2023 · 1 comment
Labels
Azure Blob enhancement New feature or request

Comments

@damienturnbull
Copy link

When uploading a jpg file as an Azure Blob using WriteAsync, the file is created in Azure with a Content-Type set to 'application/octet-stream'. There doesn't seem be any support for setting the Content-Type to 'application/image/jpeg'. Or is there?

@robinrodricks robinrodricks added enhancement New feature or request Azure Blob labels Feb 3, 2024
@njannink
Copy link

njannink commented Mar 1, 2024

would be nice if the behavior of ContentType would be equal over all storage implementations. Eg for local storage you will need to add it as Metadata, but for Azure storage its in the Properties dictionary.

And indeed you cannot set the ContentType header for Azure storage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Azure Blob enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants