mime_guess icon indicating copy to clipboard operation
mime_guess copied to clipboard

MIME type guessing of file extensions for Rust.

Results 12 mime_guess issues
Sort by recently updated
recently updated
newest added

https://en.wikipedia.org/wiki/High_Efficiency_Image_File_Format https://en.wikipedia.org/wiki/JPEG_XL

- https://github.com/freedesktop/xdg-shared-mime-info/blob/master/data/freedesktop.org.xml.in - Compared with the output of `gio info`

HTML audio fails when the mime type is `audio/m4a` (current implementation of `mime_guess` for the extension `.m4a` It should be `audio/np4` https://www.rfc-editor.org/rfc/rfc4337#page-3

I was hoping to see an example like this and didn't find one, so I made one! I thought you might want to add it to the repo

I'm guessing mime types from extensions, but I know that whenever it's a text-based format, it's utf-8. Would it be possible to support guessing `charset=utf-8` where permissible? I.e. returning `text/html;...

As far as I can tell, all files with no extention are returned `application/octet-stream`. These should probobly be `text/plain`. See also https://filext.com/search?q=Likely+a+Text+File

[`get_mime_extensions`](https://docs.rs/mime_guess/latest/mime_guess/fn.get_mime_extensions.html) behaves differently to [`get_mime_extensions_str`](https://docs.rs/mime_guess/latest/mime_guess/fn.get_mime_extensions_str.html), in that it seems to disregard the suffix, breaking certain common mime types: ```rust // works: mime_guess::get_extensions("image", "svg+xml") // fails: mime_guess::get_mime_extensions("image/svg+xml".parse().unwrap()) ```

Below is list of 90 most popular extensions on my OS, that doesn't have any mime type assigned some like `qml` are easy to assign, unlike generic extension `file` a...

https://filesamples.com/formats/mobi https://filesamples.com/formats/azw3 `file` command returns that both mobi and azw3 have same mime type ``` rafal@rafalkom:~/Downloads$ file Around\ the\ World\ in\ 28\ Languages.azw3 Around the World in 28 Languages.azw3: Mobipocket...