1

I am trying to use the requests library to upload an image to a file upload. When I run the code I get a status code 200 meaning it's working but when I reload the page to see if my file was uploaded nothing happens.

Code I used:

import requests
url = (r'https://www.roblox.com/build/upload?assetTypeId=13')
files = {'media': open(r'C:\Users\eshbe\Desktop\RojoProject\Python\Orang.jpg','rb')}
r = requests.post(url, files=files)
print(r.status_code)

I uploaded to a site that looks like this. when I printed r.text I got a huge HTML output https://i.stack.imgur.com/YTluJ.png

0 Answers0