You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm aware of that comment, in my honest opinion .msg should be supported as outlook format is widely used in companies.
The change is trivial and could avoid bugs / headaches in the future.
Shall I open a PR or you're not planning to add a new entry for .msg ?
Describe the bug
Using
FileExtensionContentTypeProvider TryGetContentType
method with.msg
file extension will not returnapplication/vnd.ms-outlook
.We are using it to set Content-Type response header based on the file extension our user is trying to download. So far it’s working great but we had an issue where .msg files couldn’t be downloaded, and we found out in source code it is not supported.
https://github.com/dotnet/aspnetcore/blob/main/src/Middleware/StaticFiles/src/FileExtensionContentTypeProvider.cs
As a workaround we currently add
.msg
entry intoMappings
but we believe that would be nice to support such a common extension.The text was updated successfully, but these errors were encountered: