How to use binary file to post via HTTP

Hi, I’m trying to move a file from Gmail trigger to a POST, but I always get the same message: This operation expects the node’s input data to contain a binary file ‘attachment_0’, but none was found [item 0]

But the file it’s on the prevoius node.

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Welcome to the community @Sebastian_Cazajus !

Tip for sharing information

Pasting your n8n workflow


Ensure to copy your n8n workflow and paste it in the code block, that is in between the pairs of triple backticks, which also could be achieved by clicking </> (preformatted text) in the editor and pasting in your workflow.

```
<your workflow>
```

That implies to any JSON output you would like to share with us.

Make sure that you have removed any sensitive information from your workflow and include dummy or pinned data with it!


If your HTTP Request node does not directly follow the GMail trigger then that is the reason the node have no access to the binary file. You need to make sure the binary file is present in the node that HTTP Request’s input is directly connected to.

Here’s an example the binary file is available where it’s needed, [onedrive via Graph HTTP] why binary don't upload if not exactly previous node? - #2 by ihortom.