[thelist] User file download with Cold Fusion

Aaron Johnson evolt at cephas.net
Sun Feb 18 20:15:05 CST 2001


Hi Chris,

You can do this a couple ways.... here's the way I think you should:

1) Create a .cfm page that you'll point all your MP3 links to and pass an
url variable to this page that designates which MP3 the user wants to
download (ie: /download.cfm?mp3=moby_track3)

2) On your download.cfm page, look up the variable "mp3" in your access
database, and find out what the name of the file is and where the file is
located.

3) Serve up the file using the <cfheader> and <cfcontent> header...
<cfheader> will tell the browser which type of file you're sending to it,
and <cfcontent> will allow you to send the MP3.

HTH's.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: aaron.johnson			: <wrk>617.461.3721
: web.applications.developer	: <fax>703.832.6221
: ajohnson at cephas.net		: <icq>66172567
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Chris Silwedel
Sent: Sunday, February 18, 2001 9:07 PM
To: thelist at lists.evolt.org
Subject: [thelist] User file download with Cold Fusion


Hi all,

Hopefully this will be an easy question for someone to answer.  I want to
have a link to an MP3 as well as increment a counter with the one link.
I've set up the a field in the database for a coutner for that particular
MP3.

Can anyone shed some light on how to do this - i'm probably just missing
something really obvious solution because I've been working too many hours
lately ;p
I'm using Cold Fusion 4.0 by the way for this project with an Access
database if that matters.

Thanks in advance,

Chris



---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt !





More information about the thelist mailing list