NetTalk Central

Author Topic: Download process  (Read 2405 times)

agustinh2000

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
    • Email
Download process
« on: May 20, 2014, 03:08:36 PM »
Hi Bruce.

I want to export a fixed name.

  GLO: DosFileName = clip (p_web.site.WebFolderPath) & '\ example.txt'
  p_web.SetProgress (loc: ProgressName, 100, GLO: DosFileName)

When I Click here to download file: ok

But my question is if the content of the file changes (example.txt) always lowers the content of the first click.

As I can do to fix this

thanks

Agustín

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11177
    • View Profile
Re: Download process
« Reply #1 on: May 20, 2014, 09:36:33 PM »
Hi Agustin,

>> I want to export a fixed name.

ok - but bear in mind that if you have multiple users all sharing the same name, then one can be overwriting a file while the other is reading it.

>> if the content of the file changes (example.txt) always lowers the content of the first click.

Sorry mate - I'm not understanding this line at all. Can you re-phrase it?

cheers
Bruce

agustinh2000

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
    • Email
Re: Download process
« Reply #2 on: May 21, 2014, 03:39:59 AM »
I understand what the fixed name. But I use a mysql sql statement "into outfile" where I store the result of a query with a fixed name.

The second question is do steps:

1) is generated in the server example.txt (values ​​1,2,3,4) in the \ web
2) Click here to download file-> file is downloaded in the browser
3) I'll be back to generate example.txt (but with values ​​1, 2, 3) in the \ web
4) Click here to download file-> file is downloaded in the browser but with previous values ​​(1,2,3,4).

The only way to reset it is to restart the webserver

Agustín

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11177
    • View Profile
Re: Download process
« Reply #3 on: May 21, 2014, 08:14:07 AM »
>> The only way to reset it is to restart the webserver

the file is being cached by the web server. For now just turn the caching off (WebServer Procedure, Performance tab.)

Cheers
Bruce

agustinh2000

  • Jr. Member
  • **
  • Posts: 86
    • View Profile
    • Email
Re: Download process
« Reply #4 on: May 21, 2014, 02:20:38 PM »
works!!!

thanks Bruce