Function mime_for_path
pub fn mime_for_path(path: &Path) -> Option<&'static str>Expand description
The mime type to offer a file’s bytes under, from its extension.
None when the extension says nothing — the drag then carries only a
URI list, rather than claiming
application/octet-stream content a receiver would have to sniff.