RE: CFCONTENT and file downloads

2002-09-27 Thread Ye Wang
found out it’s the same with CF5. It’s 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

RE: CFCONTENT and file downloads

2002-09-26 Thread Dave Watts
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

RE: CFCONTENT and file downloads

2002-09-26 Thread James Taavon
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?

Re: CFCONTENT and file downloads

2002-09-26 Thread S . Isaac Dealey
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

RE: CFCONTENT and file downloads

2002-09-26 Thread Mosh Teitelbaum
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