Why do some files not have mimetypes?
guess_type
returns a tuple with information about the file type
like 'image/jpeg'
, 'application/xml'
, 'text/plain'
, ....
Why do other files return no information 'None'
even though the file exits and is not empty?
>> import mimetypes
>> mimetypes.guess_type('myfile.xx')