Function mime_guess::get_mime_type_opt
source · [−]👎 Deprecated since 2.0.0:
use from_ext(search_ext).first()
instead
Expand description
Get the MIME type associated with a file extension.
If there is no association for the extension, or ext
is empty,
None
is returned.