def mimetype_file(self): """ Return the mimetype using the fine free file library. """ if self._mimetype_file is None: self._mimetype_file = '' if self.is_file is True: self._mimetype_file = magic2.mime_type(self.location) return self._mimetype_file
def mimetype_file(self): """ Return the mimetype using the fine free file library. """ if self._mimetype_file is None: self._mimetype_file = "" if self.is_file is True: self._mimetype_file = magic2.mime_type(self.location) return self._mimetype_file