In CF 5 (and previous) you still needed to use cfheader to tell it what the
file name was.  Something like this should get you there:


<cfheader name="content-disposition"
value="attachment;filename=#getDir.doc_file_name#">
<cfcontent
file="c:\cfusion\wwwroot\ncdp\repository\#getsystem.system#\#getdir.doc_File
_Name#" type="zebra/zebra" deletefile="no">


Also instead of attachment you can use inline in the cfheader tag to open it
in the browser.

Timothy Heald
Web Portfolio Manager
Overseas Security Advisory Council
U.S. Department of State
571.345.2319

The opinions expressed here do not necessarily reflect those of the U.S.
Department of State or any affiliated organization(s).  Nor have these
opinions been approved or sanctioned by these organizations. This e-mail is
unclassified based on the definitions in E.O. 12958.

-----Original Message-----
From: SMR [mailto:[EMAIL PROTECTED]
Sent: Monday, December 01, 2003 11:57 AM
To: CF-Community
Subject: cfcontent in MX

okay guys, can't figure this one out and have searched google until I can't
search anymore...

This line worked in CF 5.0

<cfcontent
file="c:\cfusion\wwwroot\ncdp\repository\#getsystem.system#\#getdir.doc_File
_Name#" type="zebra/zebra">

In MX it works except the dialogue box that opens does not have the document
file name, but the CF file name (downloaddocument.cfm).

The parameters are correct because this works:

<cfoutput>
<a
href=""> File_Name#">Get Document Here</a>
</cfoutput>

but I want to automatically pop up the dialogue to open/save the document,
not give an href.  I've also tried this:

cffile action=""> file="c:\cfusion\wwwroot\ncdp\repository\#getsystem.system#\#getdir.doc_File
_Name#" variable="ncdp"/>
<cfcontent type="zebra/zebra">
<CFSCRIPT>
    writeOutput(toString(ncdp));
</cfscript>

with the same results as cfcontent.

Can someone tell me what I'm doing wrong?

TIA
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to