def get_content_type(self): """Get MIME content file type (example: image/jpeg). @return: file content type. """ return magic.from_file(self.file_path, mime=True)
def get_content_type(self): """Get MIME content file type (example: image/jpeg). @return: file content type. """ return magic.from_file(self.file_path, mime=True)
def get_type(self): """Get MIME file type. @return: file type. """ return magic.from_file(self.file_path)
def get_type(self): """Get MIME file type. @return: file type. """ return magic.from_file(self.file_path)