File.mimeTypeToExtension
File.mimeTypeToExtension($mimeType) -> string
Description
Infer the file extension for the given MIME type.
If the MIME type is unknown, it returns ''.
NoteThe number of possible MIME types is effectively limitless. This function only covers the most common MIME types related to the web (about 70 total).
File.mimeTypeToExtension('image/png')
//= 'png'
File.extensionToMimeType('text/html')
//= 'html'
File.extensionToMimeType('some/application')
//= ''