I am using CFContent to grab a file and serve it up to the end user which
works great, except that if I go after a file called setup.exe for example
and serve it to the user when they choose to save it to their system it
tries to save it as index.cfm in this case or what ever file name I happen
PM
To: CF-Talk
Subject: Changing the name of a file...
I am using CFContent to grab a file and serve it up to the end user which
works great, except that if I go after a file called setup.exe for example
and serve it to the user when they choose to save it to their system it
tries to save
=attachment;
Filename=#url.filename#
HTH,
Duane
-Original Message-
From: Bill Killillay [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 28, 2001 3:45 PM
To: CF-Talk
Subject: Changing the name of a file...
I am using CFContent to grab a file and serve it up to the end user which
works great
To: CF-Talk
Subject: Changing the name of a file...
I am using CFContent to grab a file and serve it up to the end user which
works great, except that if I go after a file called setup.exe for example
and serve it to the user when they choose to save it to their system it
tries to save it as index.cfm
I am using CFContent to grab a file and serve it up to the end
user which
works great, except that if I go after a file called setup.exe
for example
and serve it to the user when they choose to save it to their system it
tries to save it as index.cfm in this case or what ever file
name I
Washington, D. C.
703.837.4428
-Original Message-
From: Bill Killillay [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 28, 2001 3:45 PM
To: CF-Talk
Subject: Changing the name of a file...
I am using CFContent to grab a file and serve it up to the end user which
works great
] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 28, 2001 1:57 PM
To: CF-Talk
Subject: RE: Changing the name of a file...
I don't think CFCONTENT is the tag you want to use for this.
JoAnn A. Schlosser
Senior Consultant
Association Management Software
Grant Thornton LLP
Washington, D. C
]]
Sent: Tuesday, August 28, 2001 4:02 PM
To: CF-Talk
Subject: RE: Changing the name of a file...
I'm not sure if there's a way to change headers by hand in ColdFusion... if
so, you can add this to the HTTP header:
Content-disposition: inline; filename=yourFileNameHere;
-Original Message
Is there a way to force it back to setup.exe?
Should be able to just link to
./index.cfm/setup.exe?QueryItem1=1QueryItem2=2..., treating the page
with cfcontent as a directory. I just did this the other day..
If you are calling it from a form, i believe you can just CFLOCATION to
the url.
9 matches
Mail list logo