I have a file asdf.txt which I want to upload to a gofile folder, but on the gofile folder, I want the file to be named qwer.txt. How can I accomplish this with python requests?
This is what I tried:
gofile_server = requests.get("https://api.gofile.io/servers").json()["data"]["servers"][0]["name"]
r = requests.post(
url = f"https://{gofile_server}.gofile.io/contents/uploadfile",
data = {
"token": token,
"folderId": folderId,
"file": ("qwer.txt", open("asdf.txt", "rb"), "text/plain")
}
)
print(r.text)```
But I get: `No boundary found`