I’m running an Umbraco site (v10+) using AzureBlobMediaFileSystem to store media in Azure Blob Storage.
I’ve added vtt to the AllowedUploadFileExtensions in appsettings.Development.json like so:
"Umbraco": {
"CMS": {
"Media": {
"AllowedUploadFileExtensions": [
"jpeg", "jpg", "png", "gif", "svg", "webp",
"mp4", "webm", "vtt", "srt", "pdf", "docx",
"xlsx", "pptx", "txt", "zip"
]
}
}
}
The upload works fine from the backoffice, and the file appears in the Azure Blob container.
However, when I try to access the .vtt file via the public media URL (e.g. /media/xxxx/filename.vtt), it returns a 404.
Here’s what I’ve checked:
- The file is present in the blob container.
- Public blob access is enabled.
- I’ve verified that the blob has the wrong
Content-Type(showsapplication/octet-streaminstead oftext/vtt). - I suspect Umbraco isn’t setting the correct MIME type when uploading.
Questions:
- How can I force Umbraco to set the correct
Content-Type(e.g.,text/vtt) on upload? - Is there a built-in way to configure MIME types for Azure media file uploads in Umbraco?
- Do I need to hook into
FileUploadingand set the content-type manually via a component?