Cannot POST file with Http Request component

Hi all!

trying to catch an attachment file from IMAP Email and send it with POST via Http Request.

Unfortunately, I’m getting an error that my key ‘file’ does not exist :expressionless:

It’s properly downloaded in the IMAP Email component as ‘asset_0’.

Am I doing something wrong?

Hello @dymitrs, welcome to the community!

If your binary data is saved in the binary key “asset_0” the node to send it somewhere would look like this:

  "nodes": [
      "parameters": {
        "requestMethod": "POST",
        "url": "",
        "responseFormat": "string",
        "jsonParameters": true,
        "options": {
          "bodyContentType": "raw"
        "sendBinaryData": true,
        "binaryPropertyName": "asset_0"
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 1,
      "position": [
  "connections": {}