I'm not sure what you want is possible. The document download happens in the client, and unless you can embed something to communicate back to your server, I don't think you'll ever know if they actually download it or not. Someone else suggested using try/catch, and I tried that to see if it would work. Unless I'm doing something wrong, the catch doesn't fire when the download is cancelled.
Now that I think about it, you should be able to see real download numbers in your web server logs. > -----Original Message----- > From: Brian Coleman > Sent: Tuesday, March 21, 2006 9:03 AM > > Does anyone know of a way to serve up files and record how > many times the file's been downloaded? > > For example if I use some code like this... > <cfheader name="Content-Disposition" value="attachment; > filename="D:\etc"> > <cfcontent file="D:\etc" type="application/octet-stream"> > > Is there some way I record info *after* the download? > I tried putting some code at the top of a page like this and > it executed...but putting it after the <cfcontent> nothing happened. > If I put it at the top of the page, I guess it's like a click > counter, it records the user having clicked the link to the > page but not if they saved or canceled the download. [INFO] -- Access Manager: This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. A2 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:235898 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

