docs: def setMimeTypeByName(self, name):
          " Guess the mime type "
          mimetype = mimetypes.guess_type(name)[0]
          if mimetype is not None:
              self.mimetype = mimetypes.guess_type(name)[0].split(";")[0]