Download file from s3

Hi, I am using

to download files from s3, where can I set the path where to store the file on my local computer ?

Hi @Asaf_Shay, welcome to the community!

You’d need the Write Binary File node to store the file to your local machine (and will be able to specify a path in there). Here’s an example workflow demonstrating this:

Example Workflow
{
  "nodes": [
    {
      "parameters": {},
      "name": "Start",
      "type": "n8n-nodes-base.start",
      "typeVersion": 1,
      "position": [
        250,
        300
      ]
    },
    {
      "parameters": {
        "bucketName": "mybucket",
        "fileKey": "myfile.jpg"
      },
      "name": "AWS S3",
      "type": "n8n-nodes-base.awsS3",
      "typeVersion": 1,
      "position": [
        450,
        300
      ],
      "credentials": {
        "aws": {
          "id": "12",
          "name": "AWS account"
        }
      }
    },
    {
      "parameters": {
        "fileName": "/home/node/myfile.jpg"
      },
      "name": "Write Binary File",
      "type": "n8n-nodes-base.writeBinaryFile",
      "typeVersion": 1,
      "position": [
        650,
        300
      ]
    }
  ],
  "connections": {
    "Start": {
      "main": [
        [
          {
            "node": "AWS S3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AWS S3": {
      "main": [
        [
          {
            "node": "Write Binary File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Hope this makes sense and helps!