How to transfer file from one application to another using Form-data

0
Hi all, I am trying to send “form-data” in a POST Request via Mendix. In Mendix I try to achieve this in a Microflow with a “CALL REST (POST)” action and by Adding a HTTP Header with Key “Content-Type” and Value “'multipart/form-data'”  . they showing me following error . Thanks and best regards, Vaishnavi
asked
2 answers
1

Hi Vaishnavi,

The content type for the FileDocument part is application/octet-stream.

Please check the below link for reference

https://docs.mendix.com/refguide/call-rest-action/#63-form-data

Hope it helps!!!

answered
1

Hi Vaishnavi,

That’s correct.

As Bharathi mentioned, you need to use content-type value =”application/octet-stream” to send file/image. it should solve your error.

 

Thanks

answered