Thanks I didn't have the getfilefrompath statement in my cfheader.
- Original Message -
From: Mike Townend
To: CF-Community
Sent: Monday, December 01, 2003 12:13 PM
Subject: RE: cfcontent in MX
add a CFHeader to the file...
CFHEADER NAME=Content-Disposition VALUE=inline;
filename
add a CFHeader to the file...
CFHEADER NAME=Content-Disposition VALUE=inline;
filename=#FileNameHere#
where #FileNameHere# is a variable contiaining the filename, so in your case
something like
CFHEADER NAME=Content-Disposition VALUE=inline;
we had a problem with cfcontent which was resolved by the latest service
pack
which SP are you on?
-Original Message-
From: SMR [mailto:[EMAIL PROTECTED]
Sent: 01 December 2003 16:56
To: CF-Community
Subject: cfcontent in MX
okay guys, can't figure this one out and have searched
In CF 5 (and previous) you still needed to use cfheader to tell it what the
file name was.Something like this should get you there:
cfheader name=content-disposition
value=attachment;filename=#getDir.doc_file_name#
cfcontent
Something else neat I just learned while looking at this.If you want the
file size to be correct in the download box do this:
!--- Try this: ---
CFDIRECTORY ACTION="">
DIRECTORY=#expandpath(.)#
NAME=getfile
FILTER=movie.mpeg
CFHEADER name=Content-Length value=#getfile.size#
Timothy Heald