Logic Machine Forum
Downloading a CSV file from LM'S Internal FTP - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Downloading a CSV file from LM'S Internal FTP (/showthread.php?tid=4094)



Downloading a CSV file from LM'S Internal FTP - savaskorkmaz - 16.06.2022

Hi,

We are creating a report CSV file and we can write internal memory home/ftp folder of Logic Machine via part of this script.

src = 'Report.csv'
dst = 'home/ftp/' .. src
log(io.writefile(dst, buffer))


We can reach this file via external FTP applications like filezilla. But we would lie to download via a button on LM graphic. We created a button with URL link /home/ftp/Report.csv . This button is not working. It was working for user folder before. It means , when we upload a file in user folder via FTP application ( for example manual.pdf ) we can download with a button with URL link /user/manual.pdf

How we can download via button and browser from home/ftp folder . Or can we write this Report.csv file in to user folder ?

Regards


RE: Downloading a CSV file from LM'S Internal FTP - admin - 16.06.2022

Path for user directory is /home/apps/store/user/ (make sure it starts with / or it might not work). To access it via FTP you need to use apps login instead of ftp.