« Previous Next »

Thread: how to find out whether client's download of a file has ended successfully or failed?

Last post 11-23-2009 5:34 PM by davcox. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 08-29-2009, 9:37 AM

    • troy2009
    • Not Ranked
    • Joined on 08-29-2009, 1:14 PM
    • Posts 1

    how to find out whether client's download of a file has ended successfully or failed?

    Hello,

    I wonder if it is possible to know a file download succeded of failed at the applcation level. I think ISAPI filters should help on this matter. After some research I encounter SF_NOTIFY_END_OF_REQUEST and SF_NOTIFY_LOG events.

    I will appreciate if you make comments, advise me.

    Thanks in advance,

     Mehmet

  • 11-23-2009, 5:31 PM In reply to

    • davcox
    • Top 50 Contributor
    • Joined on 07-21-2006, 6:28 PM
    • Redmond
    • Posts 215

    Re: how to find out whether client's download of a file has ended successfully or failed?

    These events will fire after we have successfully sent the last bytes from the server ... whether they got to the client properly is not guaranteed (there are typically many machines between the server and the client) ... but it's a good indication of success. 

    The client though is the best judge of this ... which is why a lot of applications are starting to use client-side logging to help the server know if the download was successful (particularly in terms of media scenarios) ... check out this extension for more information.  http://www.iis.net/expand/AdvancedLogging 

    Dave

  • 11-23-2009, 5:34 PM In reply to

    • davcox
    • Top 50 Contributor
    • Joined on 07-21-2006, 6:28 PM
    • Redmond
    • Posts 215

    Re: how to find out whether client's download of a file has ended successfully or failed?

    (reposting as the first didn't seem to come through)

    Using these are a good indication that the download was probably successful, but it is not a guarantee.  Since there are many machines betwen the server and client, the server may complete the send, but the client may not receive it. 

    For this reason, on IIS7, folks are beginning to use Advanced logging on the client to validate for sure that the client received the content.  http://www.iis.net/expand/AdvancedLogging 

    Dave

Page 1 of 1 (3 items)
Microsoft Communities