Conversation
|
That said,while we only support one mime type per extension, we do support multiple mime types pointing to the same extension. So while To do this, instead of adding a mapping for Then you can lookup the extension by either mime type and it'll maintain backwards compatibility. |
samuelneff
left a comment
There was a problem hiding this comment.
See above comment about using a reverse mapping instead.
|
If I may, I think the changes submitted by @RyanGaudion still need to be merged in as I'm also getting an exception when trying to get file extension for mime type "image/jpg" |
MimeTypeMap.GetExtension("image/jpg") - throws an error when it shouldn't