Send multiple binary files in n8n Binary Data

Describe the problem/error/question

I want to send an HTTP Request to an endpoint that requires multiple files to be sent (This endpoint is going to merge all the files into one).

What is the error message (if any)?

The problem is the Parameter Type “n8n Binary Data” only allows to write one binary data field name.

Example, if I send the request like this, it works:

But if I try to send multiple files in the fileInput field then it fails. It’s because the n8n Binary Data type expects only one file…

If you add more than one it literally tries to send it with that name:
“data_0, data_1, data_2” as one file and because that file doesn’t exist then errors:


Any ideas?

Information on your n8n setup

  • n8n version: 1.20.0
  • Database (default: SQLite): Postgresql
  • n8n EXECUTIONS_PROCESS setting (default: own, main): queue
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker-image
  • Operating system: linux gcs

Hey @yukyo,

The best I can think of for that would be to use a code node but I did find a similar question to this and there is an answer below which may help

This definitely works, I can upload all the mails.

I would like to get the name of the sender, say “Facebook” into the name of the file.

Let’s say the invoice name is “invoice123456”, I would like to change it to [year][month][date]-invoice123456-Facebook

Hey @strayr,

On the upload I think we have an option to set the filename, Have you tried using that?