Http request with form-data

When using the Http Request, I specify the body type as Form-Data. The server to which the request is sent expects a MultipartFile with the key ‘file’ and the value as the file itself. However, I can’t add a file to the ‘value’ field, only a text value.

If I send the request in the way shown in the screenshot, the server responds that it doesn’t receive the file.
As a workaround, in the new version I temporarily save the file to disk and then send it using the “Execute Command” node.
But I feel like this is not an optimal approach.

Looks like you might just need to switch the parameter type from Form-Data to n8n Binary File.

Yes, that looks like the simplest option, but unfortunately, it doesn’t work that way.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.