code: def add_file(self, fieldname, filename, filePath, mimetype=None):
          
          body = filePath
          if mimetype is None:
              mimetype = mimetypes.guess_type(filename)[0] or 'application/octet-stream'
          self.files.append((fieldname, filename, mimetype, body))
docs: Add a file to be uploaded.
          Inputs:
             fieldname - name of the POST value
             fieldname - name of the file to pass to the server
             filePath - path to the local file on disk
             mimetype - MIME stands for Multipurpose Internet Mail Extensions.
               It's a way of identifying files on the Internet according to
               their nature and format. Default is None.