[thelist] Save As dialog

Stevenson Ngila Stevenson at epr.footman-walker.com
Wed Nov 6 03:18:01 CST 2002


Any file i save and i try to open, it's coming with the error below:

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
><><><><><><><><><><><><><><><><><><><><
Error Diagnostic Information
No such file.The file specified in CFContent does not exist:
Attached/timezone.doc
The error occurred while processing an element with a general identifier of
(CFCONTENT), occupying document position (2:1) to (2:69).Date/Time: 11/06/02
12:09:20Browser: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR
1.0.3705)Remote Address: 10.12.1.40HTTP Referer:
http://ngila-2000/AttachedDocuments.cfm?Mode=DJ&ID=2749Query String:
FileName=timezone.doc
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
><><><><><><><><><><><><><><><><><><><><

the code i used was:
><><><><><><><><><><><><><><><><><><><><><><><><><><>
<cfheader  name="Content-Disposition"  value="attachment;
filename=#FileName#">
<cfcontent  file="Attached/#FileName#"  type="application/x-unknown">
<cfabort>
><><><><><><><><><><><><><><><><><><><><><><><><><><>

-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of .jeff
Sent: 06 November 2002 10:16
To: thelist at lists.evolt.org
Subject: RE: [thelist] Save As dialog


hi,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Stevenson Ngila
>
> How do I prompt a "Save As" dialog in coldfussion for
> any link clicked?
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

the requested template would need to issue a header/mime-type that was
unrecognizable to the browser.  here's a combination of tags that i use to
get the job done:

<cfheader
 name="Content-Disposition"
 value="attachment; filename=foo.jpg">
<cfcontent
 file="F:/inetpub/wwwroot/foo.jpg"
 type="application/x-unknown">
<cfabort>

good luck,

.jeff

http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/

--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !





More information about the thelist mailing list