Skip to content

FileExtensionContentTypeProvider returns no content type for .msg files #63019

@rd-botan-kansiray

Description

@rd-botan-kansiray

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

I’m trying to make an API call to upload a .msg file (Outlook email file). To dynamically set the Content-Type header, I’m using the FileExtensionContentTypeProvider from Microsoft.AspNetCore.StaticFiles. However, it returns false for .msg files, meaning no MIME type is found.

Describe the solution you'd like

I would like the .msg file extension to be included in the default mappings of FileExtensionContentTypeProvider, with the MIME type application/vnd.ms-outlook. This would allow developers to handle .msg files more seamlessly when setting content types dynamically, without needing to manually add the mapping.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✔️ Resolution: Won't FixResolved because we decided not to change the behavior reported in this issue.Status: Resolvedarea-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions