Thanks I didn't have the getfilefrompath statement in my cfheader.
  ----- Original Message -----
  From: Mike Townend
  To: CF-Community
  Sent: Monday, December 01, 2003 12:13 PM
  Subject: RE: cfcontent in MX

  add a CFHeader to the file...

  <CFHEADER NAME="Content-Disposition" VALUE="inline;
  filename=#FileNameHere#">

  where #FileNameHere# is a variable contiaining the filename, so in your case
  something like

  <CFHEADER NAME="Content-Disposition" VALUE="inline;
  filename=#GetFileFromPath(getdir.doc_File_Name)#">

  HTH

  -----Original Message-----
  From: SMR [mailto:[EMAIL PROTECTED]
  Sent: Monday, December 1, 2003 16:56
  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