Function mime_guess::get_mime_type_str
source · [−]👎 Deprecated since 2.0.0:
use from_ext(search_ext).first_raw()
instead
Expand description
Get the MIME type string associated with a file extension. Case-insensitive.
If search_ext
is not already lowercase,
it will be converted to lowercase to facilitate the search.
Returns None
if search_ext
is empty or an associated extension was not found.