python-magic library is recommended to be installed for having whole support to get proper file types and file preview.
python-magic