NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Richard I on October 03, 2019, 01:56:13 PM

Title: File Download Issues with Example 40
Post by: Richard I on October 03, 2019, 01:56:13 PM
Hi
I have incorporated the example 40 into my app.
it works, but the data is wrong, when run over the web
When run from localhost the data is correct
The data being generated is correct

I have  checked the number of CSV file available to download ( using Everything.exe) and have deleted them all. both from the remote server and local machine.
Could an earlier file be locked in the Browsers cache?
Is there anything else I need to do?

Im assuming FileDownload retrieves the file from the directory the FileDownload.exe is located?

Thanks
Richard
NT 11.19



Title: Re: File Download Issues with Example 40
Post by: Matthew51 on October 07, 2019, 02:55:28 PM
You should be sure that this is the method you need to serve a file (note the warnings all over that example). The simplest and safest way to serve a file is to have it located inside the web folder. The web server will let any user download any file in that folder if they do a get.