SKBIIDI AIJAIOEGEAIGHEAIO

This commit is contained in:
Raspi
2025-04-27 18:15:54 +02:00
parent bebfb8adb3
commit 08693f1397
9 changed files with 29 additions and 5 deletions

View File

@@ -54,10 +54,10 @@ class Send_data_stocked:
'image': (image_path, open(image_path, 'rb'), 'image/jpeg')
}
try:
#print(data)
print("Datas are : ",data)
#print(files)
response = requests.post(self.url, headers=self.headers, data=data, files=files)
print(response)
print("Answer from server is : ",response)
response.raise_for_status()
response_data = response.json()
return response_data