Trame API
add_mimetype_override()
to_mime()
Client API
Core Classes
Tools
Add a mimetype both now and when mimetypes.init() is called.
type (str) – mimetype
ext (str) – file extension for which the mimetype applies
Return the mime type from a given path
file_path (str) – Path to analyse
Mime type
str