Thank Daemon On Mon, Apr 7, 2008 at 12:45 PM, Brett Payne-Rhodes <[EMAIL PROTECTED]> wrote:
> > Thanks Andrew, > > That works a treat! To make it work I put the logging in ahead of the > delivery and then put code to reverse the logging into the <cfcatch> area. I > didn't think it would be that easy and I would never have thought to use > cftry cfcatch either! > > Awesome! Thanks again, > > Brett > B) > > > AJ Mercer wrote: > > This is from Farcry, maybe can do something in the catch?? > > > > > > <cfheader name="content-disposition" VALUE='attachment; > > filename="#fileName#"' /> > > <cfheader name="cache-control" value="" /> > > <cfheader name="pragma" value="" /> > > <cftry> > > <cfcontent type="#mimeType#" file="#filepath#" deletefile="No" > > reset="Yes" /> > > <cfcatch><!--- prevent unnecessary log entries when user cancels > > download whilst it is in progress ---></cfcatch> > > </cftry> > > > > > > On Mon, Apr 7, 2008 at 11:27 AM, Brett Payne-Rhodes <[EMAIL PROTECTED] > > <mailto:[EMAIL PROTECTED]>> wrote: > > > > > > I'm using cfcontent to deliver documents that are stored off the > > webroot. Part of the process is to track how many times a document > > has been downloaded with a view to limiting the number of times it > > is delivered. > > > > I'm just wondering if there is any way for the server to be notified > > when a document has been successfully delivered? As in, the client > > didn't cancel the download before it started or they didn't lose the > > connection half way through etc. > > > > Thanks, > > > > Brett > > B) > > > > -- > > Brett Payne-Rhodes > > Eaglehawk Computing > > t: +61 (0)8 9371-0471 > > m: +61 (0)414 371 047 > > e: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > > w: http://www.yoursite.net.au > > > > > > > > > > > > > > -- > > > > AJ Mercer > > Web Log: http://webonix.net > > > > > -- > Brett Payne-Rhodes > Eaglehawk Computing > t: +61 (0)8 9371-0471 > m: +61 (0)414 371 047 > e: [EMAIL PROTECTED] > w: http://www.yoursite.net.au > > > > > -- AJ Mercer Web Log: http://webonix.net --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~----------~----~----~----~------~----~------~--~---
