Form-data multipart-encoded request with pdf file attached into the body

Hi @vmoscolini

At a glance, I would expect the following to work:

Assuming msg.payload.byteArray is a Buffer containing the pdf and msg.payload.fname is a String with the filename in.

I also assume you have configured the HTTP Request node to do a POST rather than the default GET?

It may be worth passing the message to a Debug node so you have verify exactly what you're passing to the Request node.

1 Like