NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: Norman123 on January 02, 2014, 07:39:16 PM
-
Hi
I'm using Servedocument to allow users to download documents from a browse. I notice from the log that users frequently initiate multiple downloads of the same file within a few seconds - I assume multiple clicks. I can track these duplicate requests and return from ServeDocument but how can I return and leave the user at the browse ?
Regards
Norman
-
I "solved" this by checking (within ServeDocument) whether the user has downloaded the
same file in the past few mins and using p_web.Sendfile() and a static file containing the relevant <--Net:Tags.
-
Hi Norman,
The nature of the buttons I guess (that they are downloading a file, or going to a different tab in the browser) is such that they will allow the user to click on them multiple times. Thus your solution is probably a good one.
cheers
Bruce