found out its the same with
CF5. Its been quite frustrating for me. Does anyone know why this
happened or how I can fix it? Thanks a lot!
Ye
-Original Message-
From: Mosh Teitelbaum [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 2:17 PM
To: CF-Talk
Subject: RE: CFCONTENT
Anyone any ideas on how to get the right filename down
to the client. If necessary, I can use a fixed name -
the important thing is getting the .pdf extension (as
the files are PDF's).
This might help:
http://www.figleaf.com/demo/mimetest/
Dave Watts, CTO, Fig Leaf Software
When inserting your file into the database (at least I do), use
#File.ServerFile# which preserves the file name you are uploading to the
server. When dowloading from server to view,
cfcontent type=application/pdf file=destination and field name in
database deletefile=No
Make sense?
use this above your cfcontent tag.
cfheader name=content-disposition value=attachment;
filename=#myfilename#
[CF5 Server Pro, Windows 2000]
I have a feeling I've forgotten something obvious, but...
In a nutshell:
I have a template which uses CFCONTENT to download the contents of a file
Above your CFCONTENT tag, you have to create a new header (named
content-disposition) to supply the new name, like:
CFHEADER
NAME=content-disposition
VALUE=attachment; filename=something.pdf
CFCONTENT
TYPE=application/pdf
5 matches
Mail list logo