Api Upload Media without Postman in Python

Hy, i’m using [XIBO 1.8 API].
At the beginning we followed the guide and through Postman we were able to upload the media files in CMS through the API.
Now we have copied the code in order to develop the procedure we need in Python.
The receiving part of the access_token works, while the upload part of the media files returns the following error:

{“files”:[{“name”:“img1.jpg”,“size”:0,“type”:“image/jpg”,“error”:“File is too small”}]}

This is our code to upload the image:

payload = “------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=“files”; filename=“img1.jpg”\r\nContent-Type: image/jpg\r\n\r\n\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW\r\nContent-Disposition: form-data; name=“name”\r\n\r\nCheballe\r\n------WebKitFormBoundary7MA4YWxkTrZu0gW–”
headers = {
‘content-type’: “multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW”,
‘Authorization’: "Bearer " + token,
‘cache-control’: “no-cache”,

response = requests.request(“POST”, url, data=payload, headers=headers)


What’s wrong?
Best regards.