# Ftp node send multiple files

**URL:** <https://discourse.nodered.org/t/ftp-node-send-multiple-files/84703>\
**Category:** General\
**Created:** [18 January 2024 21:27 UTC](https://discourse.nodered.org/t/ftp-node-send-multiple-files/84703 "2024-01-18T21:27:52Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![mike1976](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@mike1976](https://discourse.nodered.org/u/mike1976)\
**Post date:** [18 January 2024 21:27 UTC](https://discourse.nodered.org/t/ftp-node-send-multiple-files/84703/1 "2024-01-18T21:27:52Z")

</div>

Hello,

I have a question about the ftp node.

Is there a way to send all files from the local folder to the ftp server?

If so, which ftp node do you use for this?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [19 January 2024 10:08 UTC](https://discourse.nodered.org/t/ftp-node-send-multiple-files/84703/2 "2024-01-19T10:08:59Z")

</div>

I have had little success with any of the ftp nodes, so I use an exec node to use command line ftp commands to do what I need.

---

<div class="post-metadata">

**Author:** ![mike1976](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@mike1976](https://discourse.nodered.org/u/mike1976)\
**Post date:** [19 January 2024 14:30 UTC](https://discourse.nodered.org/t/ftp-node-send-multiple-files/84703/3 "2024-01-19T14:30:17Z")

</div>

Do you have an example of this?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [19 January 2024 17:25 UTC](https://discourse.nodered.org/t/ftp-node-send-multiple-files/84703/4 "2024-01-19T17:25:23Z")

</div>

What don't you know how to do? Use an exec node or use command line ftp commands? If it is the latter then your favourite search engine will help you.

---

<div class="post-metadata">

**Author:** ![mike1976](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@mike1976](https://discourse.nodered.org/u/mike1976)\
**Post date:** [19 January 2024 17:57 UTC](https://discourse.nodered.org/t/ftp-node-send-multiple-files/84703/5 "2024-01-19T17:57:53Z")

</div>

I need an FTP put. in which I transfer all files from the local to the target FTP server.

Or just via exec.  
But I don't know much about exec.

I can transfer a file with ftp-node. Unfortunately I didn't find anything in the search that I could use to transfer them all.

Sorry for my bad English, google helps me.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [19 January 2024 18:27 UTC](https://discourse.nodered.org/t/ftp-node-send-multiple-files/84703/6 "2024-01-19T18:27:18Z")

</div>

There are nodes that will do a directory listing for you, I don't remember the names, but a search on the node red flows site should find them.

---

<div class="post-metadata">

**Author:** ![mike1976](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@mike1976](https://discourse.nodered.org/u/mike1976)\
**Post date:** [19 January 2024 19:35 UTC](https://discourse.nodered.org/t/ftp-node-send-multiple-files/84703/7 "2024-01-19T19:35:07Z")

</div>

Hi.

yes, I have the file list node. (fs-file-lister)

The files that are available are also shown to me.

That's not the problem.

The problem is that I don't know how to send all files to the ftp server at once.

**This is what the folder looks like, for example.**

**And is it possible to send all files to the FTP server with one exec command**

![Test 2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/4/74c7bc086d179df291a08c72ff2ef1ff02c0c6ee.png)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [19 January 2024 20:26 UTC](https://discourse.nodered.org/t/ftp-node-send-multiple-files/84703/8 "2024-01-19T20:26:28Z")

</div>

What is the FTP server? Is that the only means of transferring files?

---

<div class="post-metadata">

**Author:** ![mike1976](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@mike1976](https://discourse.nodered.org/u/mike1976)\
**Post date:** [19 January 2024 20:37 UTC](https://discourse.nodered.org/t/ftp-node-send-multiple-files/84703/9 "2024-01-19T20:37:33Z")

</div>

> [@Steve-Mcl](#):
>
> What is the FTP server? Is that the only means of transferring files

![test ftp 2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/8/b82d532ee3728dfc8d7dd04d82c162fb3269a5b8.png)

 ![test ftp](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/c/fca899406b63bec3b0814fe22afe170da2c7ecf5.png)

Sending 1 file is no problem.

But all files in the folder!?!

and the problem is that the files have a timestamp.

otherwise I could work with the name

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [19 January 2024 20:41 UTC](https://discourse.nodered.org/t/ftp-node-send-multiple-files/84703/10 "2024-01-19T20:41:53Z")

</div>

I'll ask again.

What is the FTP server? Is FTP the only option?

---

<div class="post-metadata">

**Author:** ![mike1976](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@mike1976](https://discourse.nodered.org/u/mike1976)\
**Post date:** [19 January 2024 20:45 UTC](https://discourse.nodered.org/t/ftp-node-send-multiple-files/84703/11 "2024-01-19T20:45:48Z")

</div>

> [@Steve-Mcl](#):
>
> What is the FTP server? Is FTP the only option?

Yes FTP is the only option,  
ftp server = Easy FTP Server on windows system

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [19 January 2024 20:47 UTC](https://discourse.nodered.org/t/ftp-node-send-multiple-files/84703/12 "2024-01-19T20:47:06Z")

</div>

So if it is a windows box, can you not simply do file transfer via CIFS or windows shares?

Or can you not install node-red on the windows box?

---

<div class="post-metadata">

**Author:** ![mike1976](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@mike1976](https://discourse.nodered.org/u/mike1976)\
**Post date:** [19 January 2024 20:52 UTC](https://discourse.nodered.org/t/ftp-node-send-multiple-files/84703/13 "2024-01-19T20:52:14Z")

</div>

no, unfortunately not possible.

User wants to have the transfer via FTP. omg  
😬

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [19 January 2024 21:40 UTC](https://discourse.nodered.org/t/ftp-node-send-multiple-files/84703/14 "2024-01-19T21:40:49Z")

</div>

Why can't you send them one at a time?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [19 January 2024 22:01 UTC](https://discourse.nodered.org/t/ftp-node-send-multiple-files/84703/15 "2024-01-19T22:01:39Z")

</div>

> [@mike1976](#):
>
> Sending 1 file is no problem.
> 
> But all files in the folder!?!

fs-file-lister will give you a message for each file in the folder. Pass each of those to the ftp node to transfer them one at a time.

---

<div class="post-metadata">

**Author:** ![mike1976](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@mike1976](https://discourse.nodered.org/u/mike1976)\
**Post date:** [20 January 2024 17:17 UTC](https://discourse.nodered.org/t/ftp-node-send-multiple-files/84703/16 "2024-01-20T17:17:19Z")

</div>

Hello,

just wanted to let you know it's working.

I have now done it like this:

read with the file lister.  
then I pass the FTP upload file by file.

I delete the transferred files.  
then I query again with fs.  
Until the folder is empty  
😀 👌

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [20 March 2024 17:18 UTC](https://discourse.nodered.org/t/ftp-node-send-multiple-files/84703/17 "2024-03-20T17:18:07Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
