How to sent binary data as multipart/form-data

I try to sent this cURL request via n8n:

curl --location --request POST 'https://..../upload-file/-b0db' \
--header 'x-oc-api-key: .....' \
--header 'Content-Type: multipart/form-data' \
--form 'file=@/test.opus'

I get the binary file from a webhook described in this community.n8n.question.

How dos the corresponding request look like in n8n?

Sending multi-part binary data is currently sadly not supported:

O.K., good to know. Any plans to implement this feature in the near future?

Hey @jwillmer,

Just sent a pull request that allows you to send a file using multipart/form-data.

Hopefully, that will help.

1 Like

I don’t understand what you mean. Can you elaborate?

He meant that he created a version of n8n which allows to do that. It has however not been merged into n8n. As soon as it got merged and released I will update here.

1 Like

I found the pull request on GitHub: ✨ Extended HTTP multipart/form-data functionality by RicardoE105 · Pull Request #399 · n8n-io/n8n · GitHub

Waiting for the next release :slight_smile:

1 Like

Got released with [email protected]

1 Like