Describe the problem/error/question
I am trying to build a simple API via N8N Webhook which will accept a Binary file and then write it to the local Filesystem.
The postman is sending the file as form-data
of type File
.
I do receive the file in the N8N Webhook and can see the details in the Binary section of the output.
When I try and Write this file to the local FS (accessible, writeable), N8N Write Files
node throws the below error.
I have tried with following but with same results:
{{ $('Webhook').item.binary }}
{{ $('Webhook').item.binary.file.data }}
What is the error message (if any)?
Problem in node ‘Read/Write Files from Disk‘
The item has no binary field ‘undefined’ [item 0]
Please share your workflow
Share the output returned by the last node
Information on your n8n setup
- n8n version:1.50.1
- Database (default: SQLite):default
- n8n EXECUTIONS_PROCESS setting (default: own, main):default
- Running n8n via (Docker, npm, n8n cloud, desktop app):Docker
- Operating system:Linux