MimeTypeUtils.getMimeByExtension

Get the MIME type by filename extension. Lookup the content and static default mime maps.

@param filename A file name @return MIME type matching the longest dot extension of the file name.

class MimeTypeUtils
string
getMimeByExtension
(
string filename
)

Meta