I am trying POST method to call https://my_server/api/1/upload. X-API-Key is included in headers, and the image is specified in the POST body. The problem is that either I specify the image by web url or a file object, the server always returns the following:
This problem only arises on V4, while I can upload images via API v1 on V3.
JSON:
{
"status_code": 400,
"error": {
"message": "ctype_digit(): Argument of type null will be interpreted as string in the future",
"code": 0
},
"status_txt": "Bad Request"
}
This problem only arises on V4, while I can upload images via API v1 on V3.