Guess the type of a file based on the filename using mimetypes Python module
Guess the type of a file based on the filename using mimetypes
Python module
mime_guess(file)
file |
path |
string
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.