Linking o your download page like this works...

Lets assume the download page is called dload.cfm

----------------

dload.cfm/#DownloadFile#?file=#DownloadFile#

----------------


dload.cfm needs to contain this line, seems to work fine on it's own.
---------

<cfcontent file="#request.filepath##url.file#" deletefile="No"
type="unknown">

---------

That's an old fix for NT4 SP6 from the allaire web site about 18 months ago,
it still seems to work fine for me on win2k with cf5.

Cheers, Craig


-----Original Message-----
From: Eric J Hoffman [mailto:[EMAIL PROTECTED]]
Sent: 12 November 2001 21:49
To: CF-Talk
Subject: RE: Am I a crackhead: CFContent Weirdness


CFHEADER NAME="Content-Disposition" VALUE="inline;
filename=#form.tempfilename#"
cfcontent type="application/unknown"
file="D:\blah\clientapps\marcon\archives\#form.tempfilename#"

It still comes up with the name of the calling template file instead of the
file name!  Am I still off?

Eric J Hoffman
Home of Vikings fans Worldwide!
http://www.purplepride.org



-----Original Message-----
From: Dave Watts [mailto:[EMAIL PROTECTED]]
Sent: Sunday, November 11, 2001 3:53 PM
To: CF-Talk
Subject: RE: Am I a crackhead: CFContent Weirdness


> Well, even when I cfcontent a normal file name like temp.txt,
> it is naming the file the calling template's file name rather
> than temp.txt in the save as dialog.  Very weird??

Not really - that's how CFCONTENT works. For examples of how to work around
this, look here:
http://www.figleaf.com/demo/mimetest/

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to