I am trying to upload a file using requests. I need to upload a PDF file and at the same time send some other data to the form like the author's name.
I tried this:
requests.get(url, files = {"file":open("file.txt"), "author" : "me" })
But it doesn't send data to the form.