with open("File.txt", 'rb') as f:
r = requests.post('https://file.io/?expires=1m', files=f)
print(r.status_code)
print(r)
The site is that one https://www.file.io/, but I get that error.
too many values to unpack (expected 2)
Can you help me? Thank you.
Yeah I went through the api of file.io, you have submit the data as multipartform data.
Approach 1=Using requests module
you can change the url to
https://file.io/?expires=1wto make it expire in a weekApproch 2-Using Curl
F represents multi part form data