Send files over a REST call (POST) - Mendix Forum

Send files over a REST call (POST)

4

Create the possibility to add an object of System.FileDocument in a REST POST-call. Currently it's only possible to use a binary or convert a file to (bas64 encoded) string, while some services only accept an actual file.

asked
2 answers

Yep, but that's the entire request, sometimes the request consists of certain keys/values in combination with a file. So just sending the content as body often isn't enough. As is the case with the Watson API or for example with the Box API to transfer files. So far we've only solved this with a custom java action.

Created

This already works, right? You can choose "Binary for the Entire Request" in the request tab of the REST POST call.

Created