When using CFContent, how would I write to a db AFTER a file is downloaded
(such as a counter/date) in the background, without opening a new page? I
do have each file listed in a db, with all the normal file scope fields
(size, name, etc).
[This E-mail scanned for viruses by Declude EVA]
If you are using CF 7, use OnRequestEnd in Application.cfc (or
OnRequestEnd,cfm if using anything before CF 7). You could do a check in
OnRequestEnd to see if its a page that serves up a download, and then
perform whatever DB actions you desire.
On 12/19/06, Mark Leder [EMAIL PROTECTED] wrote:
-
From: Mark Leder [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 19, 2006 7:46 AM
To: CF-Talk
Subject: Counting Cfcontent Downloads
When using CFContent, how would I write to a db AFTER a file is downloaded
(such as a counter/date) in the background, without opening a new page? I
do have
at least a prompt to download the file. They could still be counted and
simply hit close or concel on the download prompt or even download half of
the file and then cancel though. I don't think you are going to get around
that in any easy way.
That's what I told the client, that I can't control
4 matches
Mail list logo