# \[APP\]\[Pro\] FTP Client - Control FTP Servers through a directory-based UI in the Homey App or Web App

**URL:** <https://community.homey.app/t/app-pro-ftp-client-control-ftp-servers-through-a-directory-based-ui-in-the-homey-app-or-web-app/70876>\
**Category:** Apps\
**Tags:** homey-pro, community-app\
**Created:** [October 20, 2022, 7:12am UTC](https://community.homey.app/t/app-pro-ftp-client-control-ftp-servers-through-a-directory-based-ui-in-the-homey-app-or-web-app/70876 "2022-10-20T07:12:04Z")\
**Posts on this page:** 20\
**Page:** 8

<div class="post-metadata">

**Author:** ![widameista](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/widameista/32/23333_2.png) [@widameista](https://community.homey.app/u/widameista)\
**Post date:** [September 27, 2024, 10:52am UTC](https://community.homey.app/t/app-pro-ftp-client-control-ftp-servers-through-a-directory-based-ui-in-the-homey-app-or-web-app/70876/143 "2024-09-27T10:52:51Z")

</div>

I would like to store a variable (temperature) to a simple index.html and upload to a ftp server.  
something like:

```auto
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
</head>
<body>
	<div>20</div>
</body>
</html>

```

Where 20 is the variable from a sensor.

i tried:

```auto
let file= '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> </head><body>	<div>20</div></body></html>'
let base64 = file.toString('base64');
return base64;

```

but did not work

how can i achieve this?  
thank you

---

<div class="post-metadata">

**Author:** ![widameista](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/widameista/32/23333_2.png) [@widameista](https://community.homey.app/u/widameista)\
**Post date:** [September 27, 2024, 5:48pm UTC](https://community.homey.app/t/app-pro-ftp-client-control-ftp-servers-through-a-directory-based-ui-in-the-homey-app-or-web-app/70876/144 "2024-09-27T17:48:08Z")

</div>

solved it myself

```auto
let file= '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> </head><body>	<div>30</div></body></html>'
let base64 = Buffer.from(file).toString('base64')
return base64;

```

---

<div class="post-metadata">

**Author:** ![luguber](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/luguber/32/16795_2.png) [@luguber](https://community.homey.app/u/luguber)\
**Post date:** [February 17, 2025, 9:08am UTC](https://community.homey.app/t/app-pro-ftp-client-control-ftp-servers-through-a-directory-based-ui-in-the-homey-app-or-web-app/70876/145 "2025-02-17T09:08:45Z")

</div>

Hi,

I have a flow that saves some images to Micro Web Server at intervals.  
Since I use more than one “Save image to directory/filename” Then flow card, they some times run at the same time, giving this error message:

> Client is closed because User launched a task while another one is still running. Forgot to use ‘await’ or ‘.then()’?

I currently have a workaround by adding delays to the flows to try to keep them from running at the same time, but is this something that can be fixed in the app?  
It is a bit difficult and inconvenient to use delays like this.

---

<div class="post-metadata">

**Author:** ![JohanP](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/johanp/32/119002_2.png) [@JohanP](https://community.homey.app/u/JohanP)\
**Post date:** [April 28, 2025, 9:23am UTC](https://community.homey.app/t/app-pro-ftp-client-control-ftp-servers-through-a-directory-based-ui-in-the-homey-app-or-web-app/70876/146 "2025-04-28T09:23:46Z")

</div>

Created a FTP client, it connects well…  
I created a folder logfiles and set it to be the default directory for the new client.

But it keeps going to the root ‘/’ instead of ‘/logfiles’  
I tried :

logfiles  
/logfiles  
logfiles/  
/logfiles/

but non of these makes it end up in the right folder ?

---

<div class="post-metadata">

**Author:** ![SunBeech](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sunbeech/32/111391_2.png) [@SunBeech](https://community.homey.app/u/SunBeech)\
**Post date:** [April 28, 2025, 10:33am UTC](https://community.homey.app/t/app-pro-ftp-client-control-ftp-servers-through-a-directory-based-ui-in-the-homey-app-or-web-app/70876/147 "2025-04-28T10:33:23Z")

</div>

Are you referring to this setting?

 ![IMG_1844](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/0/c0fc059718e6a46e2545342547f27382b629d853.jpeg)

I believe it need to be set to the share name / top level folder.

As part of the save flow card you can specify the specific folder, relative to the share name, where the FTP Client should save the file.

---

<div class="post-metadata">

**Author:** ![JohanP](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/johanp/32/119002_2.png) [@JohanP](https://community.homey.app/u/JohanP)\
**Post date:** [April 28, 2025, 10:41am UTC](https://community.homey.app/t/app-pro-ftp-client-control-ftp-servers-through-a-directory-based-ui-in-the-homey-app-or-web-app/70876/148 "2025-04-28T10:41:10Z")

</div>

Yes, under settings :  
 ![afbeelding](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/0/408b963ef0435af9c4c461f688fa018e686ea94e.png)

I thought it was supposed to send me straight to the folder when connecting, but it doesn’t,

I end up in the root :

 ![afbeelding](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/b/0ba17ef63a18bee1fc952448f15901be622cc575.png)

Edit: Got it, in the THEN card it shows the folder as the folder to store the file..

---

<div class="post-metadata">

**Author:** ![SunBeech](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sunbeech/32/111391_2.png) [@SunBeech](https://community.homey.app/u/SunBeech)\
**Post date:** [April 28, 2025, 10:46am UTC](https://community.homey.app/t/app-pro-ftp-client-control-ftp-servers-through-a-directory-based-ui-in-the-homey-app-or-web-app/70876/149 "2025-04-28T10:46:07Z")

</div>

In my case, it also opens in the root, though it only shows the items the user account has access to (the Homey Pro share/main folder in my case).

 ![IMG_1845](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/8/d8c0e9dccb4b8e7d8feaeca2b4a1760929e063fa.jpeg)

---

<div class="post-metadata">

**Author:** ![JohanP](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/johanp/32/119002_2.png) [@JohanP](https://community.homey.app/u/JohanP)\
**Post date:** [April 28, 2025, 11:34am UTC](https://community.homey.app/t/app-pro-ftp-client-control-ftp-servers-through-a-directory-based-ui-in-the-homey-app-or-web-app/70876/150 "2025-04-28T11:34:19Z")

</div>

Not much luck yet:

Tried to download :

 ![afbeelding](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/c/2cb03a9d556b9dd9bd1956f8779420664d4d6994.png)

Cleared log probably to big. (74 pages)

Tried again :

 ![afbeelding](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/c/fcb61db906c7a61ae75212383e13a23b03425914.png)

Ok, tried to download :

 ![afbeelding](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/3/334fe491518a5763ca3d4313ddc4c57e854344bb.png)

 ![afbeelding](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/f/1fab77f72eda07ddb760816e5dbd5bae56be8573.png)

And that’s it…

Edit: After some time :

```auto
# verbinding is verstreken
De server op 192-168-xxx-xxx.homey.homeylocal.com doet er te lang over om te antwoorden.

```

How is this a correct hostname ?

---

<div class="post-metadata">

**Author:** ![SunBeech](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sunbeech/32/111391_2.png) [@SunBeech](https://community.homey.app/u/SunBeech)\
**Post date:** [April 28, 2025, 1:50pm UTC](https://community.homey.app/t/app-pro-ftp-client-control-ftp-servers-through-a-directory-based-ui-in-the-homey-app-or-web-app/70876/151 "2025-04-28T13:50:07Z")

</div>

Not sure whether relevant, but the file extension needs to be `xlsx` instead of `xls`.

What happens when you try this on mobile?

Note that:

- My log is 750 pages and is downloadable;
- Add `/logfiles/` before the file name in the flow card to save the log in that folder.

---

<div class="post-metadata">

**Author:** ![JohanP](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/johanp/32/119002_2.png) [@JohanP](https://community.homey.app/u/JohanP)\
**Post date:** [April 28, 2025, 2:45pm UTC](https://community.homey.app/t/app-pro-ftp-client-control-ftp-servers-through-a-directory-based-ui-in-the-homey-app-or-web-app/70876/152 "2025-04-28T14:45:20Z")

</div>

Extension doesn’t matter, old versions used xls not xlsx, and excel is backwards compatible. Even if it was a problem, it would be when opening the file, not when writing…

Btw, got most issues fix, but cannot download. [homeylocal.com](http://homeylocal.com) seems to be just that, a hostname for local access…

On mobile app I can do nothing with de device, I need to use a flow ..

---

<div class="post-metadata">

**Author:** ![SunBeech](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sunbeech/32/111391_2.png) [@SunBeech](https://community.homey.app/u/SunBeech)\
**Post date:** [April 28, 2025, 3:09pm UTC](https://community.homey.app/t/app-pro-ftp-client-control-ftp-servers-through-a-directory-based-ui-in-the-homey-app-or-web-app/70876/153 "2025-04-28T15:09:00Z")

</div>

> [@JohanP](#):
>
> Btw, got most issues fix, but cannot download. [homeylocal.com](http://homeylocal.com) seems to be just that, a hostname for local access…

Yes, in my cases it’s the four octets of my LAN IP-address separated by dashes followed by `homey.homeylocal.com`.

If I am correct that is somehow linked to Homey’s mechanism of connecting securely locally (I had to allow DNS Rebinding for that domain in order for that mechanism to work).

Not sure why your error message shows ‘xxx’ for the last two octets, instead of the actual numbers.

I am out of thoughts…

---

<div class="post-metadata">

**Author:** ![JohanP](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/johanp/32/119002_2.png) [@JohanP](https://community.homey.app/u/JohanP)\
**Post date:** [April 28, 2025, 3:49pm UTC](https://community.homey.app/t/app-pro-ftp-client-control-ftp-servers-through-a-directory-based-ui-in-the-homey-app-or-web-app/70876/154 "2025-04-28T15:49:14Z")

</div>

The xxx was to mask my ip adress…  
Hmm, come to think of it, that was pretty useless 🤔 😆

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [April 29, 2025, 6:08am UTC](https://community.homey.app/t/app-pro-ftp-client-control-ftp-servers-through-a-directory-based-ui-in-the-homey-app-or-web-app/70876/155 "2025-04-29T06:08:45Z")

</div>

> [@JohanP](#):
>
> Btw, got most issues fix, but cannot download. [homeylocal.com](http://homeylocal.com) seems to be just that, a hostname for local access…

See the FTP client device settings for configuration on how to download.

You can set it to cloud, and you should be able to download:

 ![1000154241](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/9/99ed0d7df8925750ba103eafe70a2818c6500d28.jpeg)

 ![1000154243](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/e/5e7b71759bc454ea1607e525acc2f7a87827991f.jpeg)

In your case, i would set all 3 settings (Url’s used for) to use the Cloud (SSL).

---

<div class="post-metadata">

**Author:** ![JohanP](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/johanp/32/119002_2.png) [@JohanP](https://community.homey.app/u/JohanP)\
**Post date:** [April 29, 2025, 6:33am UTC](https://community.homey.app/t/app-pro-ftp-client-control-ftp-servers-through-a-directory-based-ui-in-the-homey-app-or-web-app/70876/156 "2025-04-29T06:33:25Z")

</div>

Ahh, overlooked that. Sounds obvious, will adjust and test.

---

<div class="post-metadata">

**Author:** ![JohanP](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/johanp/32/119002_2.png) [@JohanP](https://community.homey.app/u/JohanP)\
**Post date:** [April 29, 2025, 8:01am UTC](https://community.homey.app/t/app-pro-ftp-client-control-ftp-servers-through-a-directory-based-ui-in-the-homey-app-or-web-app/70876/157 "2025-04-29T08:01:39Z")

</div>

Ok, that worked !

But now I can’t get this to work 🙂

 ![afbeelding](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/c/ac851b41332b37a3f91d3adf8b937d255f2b2dba.png)

 ![afbeelding](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/a/4adaaeffc445ed391bb2c2cd39bd63fc9be9c853.png)

Folder exists on the ftp server…

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [April 29, 2025, 8:16am UTC](https://community.homey.app/t/app-pro-ftp-client-control-ftp-servers-through-a-directory-based-ui-in-the-homey-app-or-web-app/70876/158 "2025-04-29T08:16:07Z")

</div>

> [@JohanP](#):
>
> Folder exists on the ftp server…

I think: either remove logiles from the flowcard or remove it as default working directory. You now have it double 😉

---

<div class="post-metadata">

**Author:** ![SunBeech](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sunbeech/32/111391_2.png) [@SunBeech](https://community.homey.app/u/SunBeech)\
**Post date:** [April 29, 2025, 8:50am UTC](https://community.homey.app/t/app-pro-ftp-client-control-ftp-servers-through-a-directory-based-ui-in-the-homey-app-or-web-app/70876/159 "2025-04-29T08:50:23Z")

</div>

Are you sure? In my case I have to include the share name (on my NAS), that I configured as work (default) directory, in the flow cards path. Otherwise it won’t save to that folder.

 ![IMG_1844](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/0/c0fc059718e6a46e2545342547f27382b629d853.jpeg)

 ![IMG_1850](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/f/afb64ae0414d82dbbccf5512b963216d6521050e.jpeg)

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [April 29, 2025, 9:45am UTC](https://community.homey.app/t/app-pro-ftp-client-control-ftp-servers-through-a-directory-based-ui-in-the-homey-app-or-web-app/70876/160 "2025-04-29T09:45:30Z")

</div>

Well @JohanP  
Perhaps try it like @SunBeech has it in his flow, write the foldername in the file-argument of the flowcard?

---

<div class="post-metadata">

**Author:** ![JohanP](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/johanp/32/119002_2.png) [@JohanP](https://community.homey.app/u/JohanP)\
**Post date:** [April 29, 2025, 11:41am UTC](https://community.homey.app/t/app-pro-ftp-client-control-ftp-servers-through-a-directory-based-ui-in-the-homey-app-or-web-app/70876/161 "2025-04-29T11:41:46Z")

</div>

I don’t get it, I ignored the error, entered ‘working direcory’ as ‘logfiles’ and re-created the FTP save-card. No go.

i cleared the whole log, so only the line ‘Cleared all logging data’ remains..

and now it works…

 ![afbeelding](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/b/2b9c24406d01dd94fbe3cf5804ee0215a260b5a7.png)

Oh and just before al that all Simplelog card where ‘unavailable’ so had te restart the App…

Somehow 8-11 entries per minute is to much for either Simplelog or the Virtual FTP ?

---

<div class="post-metadata">

**Author:** ![Mats\_Lindhe](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mats_lindhe/32/17331_2.png) [@Mats\_Lindhe](https://community.homey.app/u/Mats_Lindhe)\
**Post date:** [May 17, 2025, 2:16pm UTC](https://community.homey.app/t/app-pro-ftp-client-control-ftp-servers-through-a-directory-based-ui-in-the-homey-app-or-web-app/70876/162 "2025-05-17T14:16:29Z")

</div>

Hi.  
I’m trying to use the flowcard to write a sensorvalue to a textfile on the ftpserver but, when I open the textfile on the ftp-server there is not a readable value.  
What am I doing wrong?

 ![ute_ftp](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/3/538c7b4ce7ce253384cb841511680625ea19e47e.png)  
 ![ute_temp.txt](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/1/61a358ab4ebd3046af7eb52e7ced2f7c398e6521.png)

[Previous page](https://community.homey.app/t/app-pro-ftp-client-control-ftp-servers-through-a-directory-based-ui-in-the-homey-app-or-web-app/70876.md?page=7)

[Next page](https://community.homey.app/t/app-pro-ftp-client-control-ftp-servers-through-a-directory-based-ui-in-the-homey-app-or-web-app/70876.md?page=9)
