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
Example #2
0
 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