Describe the problem/error/question
How can I reference a binary file (specifically data) that was output from the second node (HTTP Request) in the 7th node (Google Drive → Upload File)?
For backup purposes, I also created a copy of the binary data as backupBinary in the 3rd node (Code in JavaScript), using the following code:
javascript code
return items.map(item => {
return {
json: item.json,
binary: {
...item.binary,
backupBinary: item.binary?.data,
}
};
});
Visually, it looks like the backupBinary was created correctly.
The reason I did this was because the next node (Extract from File) seems to convert the binary to base64, and I assumed this causes the original binary to be removed — which is why I tried to preserve it as backupBinary.
However, after doing more research, I now believe that converting to base64 might not actually remove the binary field, so maybe this backup is unnecessary.
What I tried:
In the Google Drive → Upload file node, I set the “Input Data Field Name” using an expression:
{{$node["HTTP Request"].binary["data"]}}
What is the error message (if any)?
This operation expects the node’s input data to contain a binary file ‘[object Object]’, but none was found [item 0]
Please share your workflow
Share the output returned by the last node
Information on your n8n setup
- n8n version:
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app):
- Operating system: