How to upload a image via POST?


#1

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

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".