Upload file to REST API Mendix form Postman

Hi. I'm testing a file upload rest api with postman. But when I execute the call, the rest api don’t receive the file content and size. When I use Swagger that mendix build for that rest api the call works well. Anyone can help me with this? Thank you HEADER File Document   
1 answers


In Header tab of Postman, set Content-Type as multipart/form-data.

In Body tab choose form-data and pass the file document as shown below


In Application Rest Service, Set the parameter as form


By this way, a file document can be sent from postman.


Hope it helps!!!