Hi,
I’m trying to upload images using this API: Item Image
Using the Http transformer for this I’m getting bad request responses because the Content-Type header that is send is not correct. See this log:
Sending request
POST /API/V3/Account/139600/Item/107075/Image.json HTTP/1.1
Content-Type: application/json
Accept: application/json
Authorization: Bearer <REDACTED>
Host: eu.merchantos.com
--6735a5ff53e658.71131631
Content-Disposition: form-data; name="data"
{"ordering":0,"description":"0060178_kpki7076t6e1_1.jpeg"}
--6735a5ff53e658.71131631
Content-Type: image/jpeg
Content-Disposition: form-data; name="image"; filename="0060178_kpki7076t6e1_1.jpeg"
<REDACTED>
The Content-Type header should have been:
Content-Type: multipart/form-data; boundary=6735a5ff53e658.71131631
Is there any way to fix this?