How to pass on multipart-form-data to the http connector (in the payload)

Hi

I am trying to invoke a REST APU through the Http-Connector , but my REST API accepts data as multipart-form , so how to map the same in the payload of the http-connector in the Camunda Modeller ?

Thanks.

Hello @mudit,

Passing by the payload as multipart/form-data is not possible with the http-connector. You would have to use a JavaDelegate and implement this on your own. Since there are several libraries available this shouldn’t be this hard.

Best, McAlm

1 Like

Thanks @McAlm

1 Like

Hello, just to confirm. I am trying to post to the deployment end point directly (https://docs.camunda.org/manual/7.7/reference/rest/deployment/post-deployment/) from a service task using an http connector (Javascript only, no delegate). It does not seem to be possible, is that correct? Thank you.