Upload file to REST API Mendix form Postman

0
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   
asked
1 answers
1

Hi,

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!!!

answered