[thelist] User file download with Cold Fusion

Chris Silwedel chrisilw at adel.tafe.sa.edu.au
Mon Feb 19 16:04:35 CST 2001


hi

well, i tried out using the cfcontent on my home machine and it worked a
treat!!  but in all the excitement i'd forgotten that cfcontent is one of
the three disabled tags on the host i'm with.

any other suggestions anyone?

chris


>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.






More information about the thelist mailing list