Kentico / AzureStorageProvider

Replacement for standard Kentico EMS provider adding metadata caching support.
MIT License
5 stars 3 forks source link

Files uploaded to blob storage missing content type #13

Closed z7paul closed 5 years ago

z7paul commented 5 years ago

Brief bug description

Files upload via the media library to the Azure Blob Storage are by default receiving a content type of "application/octet-stream" when stored in the container.

This can be problematic with direct URLs to the blob artefact or CDN as it can result in the file being downloaded as an attachment instead of rendered.

Expected behavior

On upload to the blob storage container, set the file's content type based on the file extension. e.g. .jpg = image/jpg