code: def mime_type(self):
          
          mime_type, encoding = mimetypes.guess_type(self.path)
          if not mime_type:
              mime_type = 'application/octet-stream'
          return mime_type
docs: Guess the mimetype of a file or 'application/octet-stream' if unable to guess.
          :return: str: mimetype