Thanks for that Mark,

Do the following code snips look valid?

They result in the same file being generated and saved which is a 2k
file containing the following:
" ID3    "

So I am guessing that the non-cfcontent version would work fine if I was
doing the file read properly? Maybe?

<!--- cfcontent version --->
<cffile
  action="READ"
  file="F:\sites\delivery\test_mp3.mp3"
  variable="yourMP3">

<cfcontent type="application/octet-stream">
<cfheader name="Content-Disposition" value="Attachment;
filename=test2.mp3">
<cfoutput>#yourMP3#</cfoutput>

<!--- non-cfcontent version --->
<cffile
  action="READ"
  file="F:\sites\delivery\test_mp3.mp3"
  variable="yourMP3">

<cfheader name="Content-type" value="application/octet-stream">
<cfheader name="Content-Disposition" value="Attachment;
filename=test2.mp3">
<cfoutput>#yourMP3#</cfoutput>

On Wed, 2003-10-29 at 17:27, Mark M wrote:
> May need some fiddeling to work - as I've stolen it from a PHP script, but the 
> principle should 
> be the same:
> 
> <cfheader name="Content-type" value="application/octet-stream">
> <cfheader name="Content-Disposition">
> <cfheader name="attachment">
> <cfheader name="filename" value="excelfile.xls">
> 
> HTH
> 
> Mark
> ------------------------------------------------------------------
> [EMAIL PROTECTED]
> ICQ: 3094740
> Safe From Bees
> [ www.safefrombees.com ]
> 
> 
> Quoting James Cowperthwaite <[EMAIL PROTECTED]>:
> 
> > If I happened to be on a host who had disallowed the <cfcontent> tag and
> > I was trying to serve a customer a file which they had just purchased,
> > would there be an alternative way in coldfusion 4.5, 5 to deliver that
> > file without exposing the path to the link? ie I want to be able to
> > authenticate users before letting them download particular files.
> > 
> > Can MX do this another way?
> > 
> > Any hints?
> > 
> > Thanks
> > James
> > 
> > 
> > ---
> > You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> > To unsubscribe send a blank email to [EMAIL PROTECTED]
> > MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
> > http://www.mxdu.com/ + 24-25 February, 2004
> > 
> > 
> > 
> 
> ---
> You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to [EMAIL PROTECTED]
> MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
> http://www.mxdu.com/ + 24-25 February, 2004


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to