Steps
Find the real binary key: it is the form field name, not data
We sent 25 requests to a published Webhook node (v2, POST) on n8n 2.43.7. A multipart file always landed in the item's binary data under the form field name:
-F "file=@a.csv"gavebinary.file,-F "doc=@b.pdf"gavebinary.doc. Nodes after the Webhook (Extract from File, Read/Write Files, HTTP Request, Google Drive) default their binary field todata, so they say the binary data is missing. Open the Webhook output, switch to the Binary tab, and type that exact name in the next node's Input Binary Field. Only a raw (non-multipart) body lands indata.Several files become file0, file1
Two files sent in the same field, or in
file[], arrived asbinary.file0andbinary.file1: n8n adds an index and drops the brackets. The Webhook option Field Name for Binary Data does the same even for one file: set tofile, a single upload becamefile0, and two uploads in fieldsfileanddocbecamefile0andfile1, so the original field names were lost. Point the next node atfile0, or handle any key in a Code node withObject.keys($input.item.binary)(snippet below).Fix the .bin extension and application/octet-stream
curl and many clients send a file part as
application/octet-streamunless told otherwise. Fora.csv, n8n kept the file name but recorded mimeTypeapplication/octet-streamand extensionbin, which can make Extract from File or an upload to Drive treat it as an unknown file. With-F "file=@a.csv;type=text/csv"it gottext/csvandcsv. Set the type on the sending side;;filename=report.pdfalso overrides the name, and accented names with spaces were kept.Raw body uploads land in data with a random name
A file sent as the whole request body (
--data-binary @filewithContent-Type: application/octet-streamortext/csv, no multipart) arrived asbinary.datawith a random UUID as the file name and the mimeType taken from the Content-Type. If you need the real name, have the sender put it in a header or query parameter and set it later. With the Raw Body option on, a JSON request gave both the parsed$json.bodyandbinary.data, a CSV request gave onlybinary.data, and multipart uploads were unchanged.Base64 in JSON is just text
A file sent as a base64 string inside JSON (
{"file":"aGVsbG8s..."}) stayed a plain string in$json.body.file; no binary was created. Add a Convert to File node with the operation Move Base64 String to File and the source fieldbody.file(not run in this test; see n8n Convert to File not working).A file that arrives as text: the part has no filename
curl -F "file=<a.csv"(with<instead of@) sends the contents without a filename. n8n treated it as a text field:$json.body.fileheld the CSV text and there was no binary at all. Use@, or make sure your client sets a filename on the part.422 "Failed to parse request body" and 404 method errors
A CSV sent with
Content-Type: application/jsonwas rejected with 422Failed to parse request bodyand the hintUnexpected token 'h' ... is not valid JSON, and the workflow never ran, so nothing shows in Executions. Send the right Content-Type, ormultipart/form-datafor files. A POST to a GET webhook got 404This webhook is not registered for POST requests. Did you mean to make a GET request?; set the node's HTTP Method to POST for uploads. Other 404s: n8n webhook not working (404).Large files
In our setup (n8n started with npm defaults, binary data in memory mode) 15 MB and 17 MB multipart files and a 17 MB raw body were all accepted. A 17 MB JSON body instead failed with
There was a problem executing the workflow. Later tests isolated the cause: JSON bodies aboveN8N_PAYLOAD_SIZE_MAX(16 MB by default) fail with exactly this message andPayloadTooLargeErrorin the log (payload limits tested). Send big files as multipart or raw binary, not as JSON or base64, and put a reverse proxy limit (nginxclient_max_body_size) above your largest file.
Code node: read the file whatever its key
This returns one item per uploaded file, each with its binary under data, so every later node works with its default setting:
const out = [];
for (const item of $input.all()) {
for (const key of Object.keys(item.binary || {})) {
out.push({ json: { field: key, fileName: item.binary[key].fileName }, binary: { data: item.binary[key] } });
}
}
return out;We ran an echo Code node on every request in this test; this exact split snippet was not run. To read the bytes in a Code node use await this.helpers.getBinaryDataBuffer(0, key), see n8n binary data not found.
Test your upload with curl
curl -X POST "https://n8n.example.com/webhook/upload" \
-F "file=@invoice.pdf;type=application/pdf" \
-F "customer=Bob"Then open the execution: the file is in binary.file and customer in $json.body.customer.
What we ran
On 25 October 2026 we sent 25 curl (8.14.1) requests to self-hosted n8n 2.43.7 under n8n start, production /webhook/ URLs, Webhook node v2, workflows published via the CLI, Respond When Last Node Finishes, and a Code node that echoed the body and the binary keys and metadata.
| Request | What n8n produced |
|---|---|
One file in field file (curl -F "file=@a.csv") | binary.file, mimeType application/octet-stream, extension bin |
Two files in fields file and doc | binary.file and binary.doc |
Two files in the same field file | binary.file0 and binary.file1 |
Two files in file[] | binary.file0 and binary.file1 (brackets dropped) |
File plus text fields name=Bob, tags=a, tags=b | binary.file; $json.body = {"name":"Bob","tags":["a","b"]} |
Option Field Name for Binary Data = file, one file | binary.file0 (not file) |
Same option, files in fields file and doc | binary.file0 and binary.file1, field names lost |
Raw body, Content-Type: application/octet-stream | binary.data, fileName a random UUID |
Raw body, Content-Type: text/csv | binary.data, mimeType text/csv, UUID fileName |
| Raw Body option on, JSON request | $json.body parsed and binary.data (application/json) |
| Raw Body option on, CSV request | binary.data only, no body key |
| Raw Body option on, multipart upload | Unchanged: binary.file |
| Base64 string inside JSON | Plain string in $json.body.file, no binary |
Multipart part without a filename (-F "file=<a.csv") | Text: $json.body.file = the file contents, no binary |
| Form-urlencoded body | Body fields only |
| POST to a GET webhook | 404 This webhook is not registered for POST requests. Did you mean to make a GET request? |
| PUT to a POST webhook | 404 This webhook is not registered for PUT requests. Did you mean to make a POST request? |
CSV sent with Content-Type: application/json | 422 Failed to parse request body, workflow never runs |
File sent with ;type=text/csv | mimeType text/csv, extension csv |
File sent with ;filename=report.pdf | fileName report.pdf kept |
File name with accents and a space (résumé été.csv) | Kept as is |
| 15 MB multipart file | 200, stored |
| 17 MB multipart file | 200, stored |
| 17 MB raw octet-stream body | 200, binary.data |
| 17 MB JSON body | There was a problem executing the workflow (cause not isolated) |
Checklist
- Look at the Binary tab of the Webhook output and use that exact key (
file,file0,data) in the next node. - Webhook HTTP Method set to POST.
- Client sends
multipart/form-datawith@and a filename, and a realtype. - Base64 in JSON? Add Convert to File.
- Large files as multipart or raw binary, not JSON.
Good to know
- Payload too large, a vague 500 on big webhook bodies or a 413: n8n 413 Request Entity Too Large, payload limits tested.
- Protecting the upload webhook with Basic, Header or JWT auth? See n8n Webhook authentication not working.
- Sending a file back to the caller: n8n Respond to Webhook not working.
- Every error text from our n8n guides is in the n8n error message index.
What we did not test
The test URL and editor upload, n8n Cloud, the filesystem or S3 binary data modes, queue mode, the Form Trigger file field, and the exact size limit for JSON bodies.
Start from a working agent
FAQ
Where does n8n put a file sent to a webhook?
In the item's binary data under the form field name: a file sent as field file is binary.file. Raw (non-multipart) bodies go to binary.data. Several files in one field become file0, file1.
Why does the node after my n8n webhook say no binary data found?
It looks for the default key data, but the Webhook stored the file under the form field name, for example file or file0. Set Input Binary Field to that exact key.
Why does my uploaded file get a .bin extension in n8n?
The client sent it as application/octet-stream. n8n keeps the name but records extension bin. Send the real type, for example curl -F "file=@a.csv;type=text/csv".
How do I send a base64 file to an n8n webhook?
n8n keeps base64 in JSON as text. Add a Convert to File node (Move Base64 String to File) on body.file, or send the file as multipart instead.
What does Failed to parse request body mean on an n8n webhook?
The Content-Type does not match the body, for example CSV sent as application/json. n8n answers 422 and the workflow never runs.
How large a file can an n8n webhook receive?
In our test 17 MB multipart and raw uploads worked, but a 17 MB JSON body failed. Send large files as multipart or raw binary.
Related guides
- n8n Google Drive node not working: Bad request, binary file not found, OAuth2 fixes
- n8n binary data in queue mode: worker says File not found? 6 tests
- n8n Google Drive Trigger not working: not firing, activation errors and fixes
- n8n Postgres Trigger not working or not firing: 27 tests, fixed
- n8n: log the token usage and cost of every OpenAI call (Google Sheets)
New guides
- GitHub release notifications in Slack (any public repo, stable releases only)
- Send RSS feeds to Slack with a keyword filter (free, incoming webhook)
- Forward emails to a Slack channel (Gmail, Outlook, any IMAP), free with an incoming webhook
- n8n Google Sheets Trigger not working: not firing, activation errors and fixes