NetTalk Central

Author Topic: ServeDocument  (Read 2661 times)

Norman123

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
ServeDocument
« 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

Norman123

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Re: ServeDocument
« Reply #1 on: January 03, 2014, 03:14:49 AM »

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.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: ServeDocument
« Reply #2 on: January 06, 2014, 01:39:24 AM »
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