Mabasej_Team/server/test.py

6 lines
194 B
Python
Raw Normal View History

2021-04-22 20:43:57 +02:00
import requests
2021-04-23 12:13:46 +02:00
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)