Returns the MIME type from a file
Returns the MIME type from a file
If no MIME type is found, application/octet-stream is returned.
File
Returns the MIME type from a file name.
Returns the MIME type from a file name.
If no MIME type is found, application/octet-stream is returned.
name of file
MIME types lookup
This implementation uses
MimetypesFileTypeMapand relies on the presence of the file extension in amime.typesfile.See