Basic starting question: how to download a list of files, starting from URL?

Describe the issue/error/question

Hi,
these are my first steps using this great tool. I have created my workflow to dowload a list of pdfs from a list of webpages.

Now I have a list of binaries. How to save each in my PC (I’m using n8n desktop).

What is the error message (if any)?

Please share the workflow

(Select the nodes and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow respectively)

Share the output returned by the last node

Information on your n8n setup

I’m using n8n desktop.

Thank you

Welcome to the community @aborruso

Use the Write Binary File node.

Example Workflow
1 Like

It works, thank you :pray:

How to set the local folder, where to save the files?

If I put C:\Users\aborr\Documents\test\{{$binary.data.fileName}} I have no result.

If I set only {{$binary.data.fileName}} I have the files in C:\Users\aborr\AppData\Local\Programs\n8n.

Weird. It works just fine for me. I’m not a Windows user, though.

@MutedJam can you please test it out?

1 Like

I can actually reproduce this. The expression editor itself works fine here:
image

However, when actually running this, the behavior seems very unexpected to Windows-me:

The file gets stored into as C:\Users\Tom\Documents{{$binary.data.fileName}} in this example:

It worked when replacing the last backslash with a forward slash though (C:\Users\Tom\Documents/{{$binary.data.fileName}}:

Could you try if the single forward slash is working for you as well @aborruso?

2 Likes

it works, thank you very much.

Do I must open a new issue for this bug? If yes, what’s the right place to do it?

1 Like

Glad to hear this is working for you, thanks a lot for confirming!

I’ve already raised this as a bug internally so you won’t have to do anything here (apart from using that forward slash for now, unfortunately).

2 Likes