Upload PNG image error

RogerZhaoRogerZhao Member Posts: 3

I can upload jpg image but can't upload png image. Does the API support the png format?

Request API:

https://api.lightspeedapp.com/API/Account/xxxxx/Item/11/Image.json

Method:POST

Content-Type: multipart/form-data; boundary=8d93530e026830c

Content-Disposition: form-data; name="data"

{"description":"item 11,user xxxx","ordering":0}

Content-Disposition: form-data; name="image"; filename="img1.png"

Content-Type: image/png


Response Message

httpCode:400,

httpMessage:"Bad Request",

message:"Invalid image type image"

1 comment

Sign In or Register to comment.