NetTalk Central

Author Topic: downloading a CSV file to Users desktop  (Read 3647 times)

Richard I

  • Sr. Member
  • ****
  • Posts: 383
    • View Profile
    • Email
downloading a CSV file to Users desktop
« 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
« Last Edit: September 30, 2019, 09:47:04 PM by Richard I »

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Re: downloading a CSV file to Users desktop
« Reply #1 on: October 01, 2019, 04:41:26 AM »
Is the users' app a desktop app? (Versus a web app.)
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

Richard I

  • Sr. Member
  • ****
  • Posts: 383
    • View Profile
    • Email
Re: downloading a CSV file to Users desktop
« Reply #2 on: October 01, 2019, 01:17:16 PM »
Don , its a NetTalk Web app
R

Matthew51

  • Full Member
  • ***
  • Posts: 151
    • View Profile
    • Email
Re: downloading a CSV file to Users desktop
« Reply #3 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.
Contractor with 10+ years of NetTalk experience looking for work.
www.linkedin.com/in/matthew-leavitt
BisWare.ca
Check out my free EasyTime Template