0

I am trying to upload an image from my computer to a free upload site using python requests

when i run this code it returns a status code 502

what is the problem?


import requests

file = {'file': open('test.png','rb')}
request1 = requests.post(
url="https://pasteboard.co/upload", files=file)
print(request1.content)
Sachith Muhandiram
  • 2,819
  • 10
  • 45
  • 94
Mohammad
  • 21
  • 6

0 Answers0