instead of a direct link to the file ... eg.

http://www.mysite.com/music.mp3

add a url variable to a link to a download processing template. .. eg...

http://www.mysite.com/download.cfm?mp3ID=#filename or some identifier#

then you can use the url value to record the download in your database

then redirect to the actual mp3 the user is requesting.

If you want me to expand on this let me know, but that's the outline.

Jenny

-----Original Message-----
From: Mike Kear [mailto:[EMAIL PROTECTED]
Sent: 02 January 2006 13:22
To: CF-Talk
Subject: Tracking downloads of mp3 files


I have a site where I have a series of mp3 files for radio hosts to
download, for their radio shows.  I want to track who's downloading what.
I have a simple stats app that keeps track of who goes where, based on teh
cgi info and their login information, but  it doesnt record the links they
click on to download the mp3 files.   So currently all I know is that user X
went to page Y, but no info about what they did there.

The links are currently just simple html links to the mp3 files, and I'm
thinking the way to track who's downloading is to make the links to another
cfm file that serves up the requested file, posting the data to the
statistics table at the same time.     And how does this second file start
the downloading of the requested file?

Is this the best way or is there a better way that I havent recognised yet?

--
Cheers
Mike Kear
Windsor, NSW, Australia
Certified Advanced ColdFusion Developer
AFP Webworks
http://afpwebworks.com
ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:228130
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to