Working on an application right now to be able to upload my UIs through the application I create them on. I have already created the program required to split the layers and export them as PNGs. The problem I have is that when I use python and create a POST request to the Roblox upload API it returns a status code 200 meaning it successfully executed but when I reload my page I don’t see anything uploaded to the site.
Here is the code:
import requests
x = requests.get(r’https://www.roblox.com/develop’)
print(x.status_code)
url = (r’Roblox’)
files = {‘media’: open(r’C:\Users\eshbe\Desktop\RojoProject\Python\Orang.jpg’,‘rb’)}
r = requests.post(url, files=files)
print(r.status_code)
Output:
200
200
So I went researching different sites to get more information on this and I found the Roblox upload API. https://publish.roblox.com/docs#!/Items/post_v1_assets_upload
Here it shows kind of an explanation on how it works for assets but I can’t find one specifically for decals.
I’m pretty stumped with this one… if anyone could help it would be great!