Function actix_files::file_extension_to_mime
source ยท pub fn file_extension_to_mime(ext: &str) -> Mime
Expand description
Return the MIME type associated with a filename extension (case-insensitive).
If ext
is empty or no associated type for the extension was found, returns
the type application/octet-stream
.