Mabasej_Team/server/test.py
Untriex Programming 5b5325f2f6 updaTE
2021-04-23 12:13:46 +02:00

6 lines
194 B
Python

import requests
file = open("files/test.jpg", "r")
r = requests.post(f"""http://192.168.1.99:8000/admin/1/upload_file""",
files={"uploaded_file": file, "patch": ""})
print(r.text)