Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EMF type not supported #844

Closed
SanaWaseem opened this issue Oct 10, 2022 · 3 comments
Closed

EMF type not supported #844

SanaWaseem opened this issue Oct 10, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@SanaWaseem
Copy link

This is happening in dot net core when I am giving the emf content type image/x-emf and sending it in the MimeTypes.TryGetExtension method, it is returning NULL. Why is not supporting emf content type

jstedfast added a commit that referenced this issue Oct 10, 2022
@jstedfast
Copy link
Owner

Any MIME-Type where the subtype starts with "x-" is a non-standard MIME-Type (the "x-" means it's an extension to the standard and has not yet been officially recognized).

The official MIME-Type for EMF files is image/emf.

You can also use MimeTypes.Register to register additional mime-types.

That said, the mappings did not contain image/emf either because it has only been recently added.

I also added image/x-emf.

@jstedfast jstedfast added the enhancement New feature or request label Oct 10, 2022
@SanaWaseem
Copy link
Author

Thank you for the prompt reply and fix.
Will this be available in 3.4.1?

@jstedfast
Copy link
Owner

3.4.1 was released a few weeks ago. I'll be making a new release "soon". Until then, you can just use MimeTypes.Register() to register that mime-type.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants