-1

So i m trying to read a video from a server and then store that as bytes and then upload that file on Anonfile. But i dont want to save that file on local storage. I'm using BytesIO to read that file as binary and able to read. But when i try to upload it fails.

UPDATE: Now it is working.

r = requests.post(upload_url, files=file_info)

But how can i set file name while uploading

DeadUser
  • 13
  • 2

1 Answers1

1

I checked your code and it working fine. Even the read video using BytesIO has been uploaded to anonfiles. please use print(r.json()) to print the json response. Please provide more details and specific error message if it is still not working for you.

Deepak Raj
  • 316
  • 1
  • 10