[Azure Blob Storage] Set Content type on Azure Blob Storage
Question
azure-blob-storage
Web icon
Forge component by Barduino

Hi


Is it any way to set the content type of a blob when uploading to Azure Blob?

It seems to default to application/octet-stream.


Regards

Baard

Not at the moment. the default is octet-stream but this can be overridden. What is your use-case and how urgently do you need this option?

Vincent Koning wrote:

Not at the moment. the default is octet-stream but this can be overridden. What is your use-case and how urgently do you need this option?

Thanks very much for prompt respons. The use case is to share pdf files using presigned links I get from using GetAccountSASTokenByBlob after upload.

The clients wants this document to open in browser and not for download (as chrome at least does with octet-stream).  Any way to get the url to open the file (always pdf in this case) directly in most browsers is the goal. If I set content type to application/pdf in Azure storage I get the functionality the clients wants.

The urgency is about 2-3 weeks.


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.