NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Richard I on September 30, 2019, 07:29:58 PM

Title: downloading a CSV file to Users desktop
Post by: Richard I on September 30, 2019, 07:29:58 PM
Hi
In a NetTalk app I have created a CSV file
I want this file to be either able to be viewed and downloaded manually, OR coded to be sent to the Users desktop (preferably)
COPY(clip(loc:Hall)&'.CSV', to users desktop
(I have looked at the File Download example but wondered whether there is an auto option.)
 

How to please......
Cheers
Richard
Title: Re: downloading a CSV file to Users desktop
Post by: DonRidley on October 01, 2019, 04:41:26 AM
Is the users' app a desktop app? (Versus a web app.)
Title: Re: downloading a CSV file to Users desktop
Post by: Richard I on October 01, 2019, 01:17:16 PM
Don , its a NetTalk Web app
R
Title: Re: downloading a CSV file to Users desktop
Post by: Matthew51 on October 02, 2019, 12:47:10 PM
The most you can do is inform the browser that you want a file downloaded. The browser then chooses where to save it. Most likely to the downloads folder. This is to protect users from attackers, or just bad web developers saving files they shouldn't to location their not allowed.

If the csv file is created at run time, and only expected to be downloaded once I recommend using a "start" button with a progress field. Beginning the file name with $$$ or @@@ and the server will delete the file after it's been served.