How to upload a image via POST?

I have read the tutorials of REST API, I tried to upload my image like this


but it just show me null.

How should I do?

2 Likes

Maybe you can try sending the data as multipart/form-data, as explained in the docs. If you use this way, let me remark that the key of the file has to be "files".

2 Likes

@ ahtcfg24 , I think you are right that base64 method does not work for me either . I wasted my whole day on it. :frowning: Seems like API is not tested well .

multipart/form-data might work . i guess.