[thelist] Force download of pdf using coldfusion
.jeff
jeff at members.evolt.org
Thu Jan 10 18:33:00 CST 2002
ryan,
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> > From: Ryan Carmody <carmodyryan at hotmail.com>
> >
> > but the file name to save is the name of the cf file
> > this code resides in and the file type is coldfusion.
> > I guess I could just zip the pdf file. If anyone can
> > help me figure this out I'd appreciate it much.
>
> I cannot remember the exact header, but there is one
> that can be set using CFHEADER that should do what you
> need.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
i must have somehow missed the original message in this thread. however, it
caught my eye this time and i have the combination of tags you're looking
for, ryan.
<cfheader
name="Content-Disposition"
value="attachment; filename=#app.file#">
<cfcontent
type="application/unknown"
file="#path_to_file#/file.pdf"
deletefile="No">
enjoy,
.jeff
http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/
More information about the thelist
mailing list