My bad.....try this (shoulda been application/octet-stream):

  <cfheader name="Content-type" value="application/octet-stream">
  <cfheader name="Content-Disposition" value='attachment; filename="#FileName#"'>
  <!--- if this fouls up in various browsers...try trailing slash in file attribute below --->
  <cfcontent file="#FullFilePath.Value#" type="application/octet-stream">

Cheers

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
t. 250.920.8830
e. [EMAIL PROTECTED]

---------------------------------------------------------
Macromedia Associate Partner
www.macromedia.com
---------------------------------------------------------
Vancouver Island ColdFusion Users Group
Founder & Director
www.cfug-vancouverisland.com
  ----- Original Message -----
  From: Deanna Schneider
  To: CF-Talk
  Sent: Wednesday, February 11, 2004 1:31 PM
  Subject: Re: cfcontent on cfmx/linux

  Nope. Same error.
  -d

  ----- Original Message -----
  From: "Bryan Stevenson" <[EMAIL PROTECTED]>
  To: "CF-Talk" <[EMAIL PROTECTED]>
  Sent: Wednesday, February 11, 2004 2:50 PM
  Subject: Re: cfcontent on cfmx/linux

  > change the mime type to octet/stream.....it fakes out the browser and
  always forces a download ;-)
  >
  > Bryan Stevenson B.Comm.
  > VP & Director of E-Commerce Development
  > Electric Edge Systems Group Inc.
  > t. 250.920.8830
  > e. [EMAIL PROTECTED]
  >
  > ---------------------------------------------------------
  > Macromedia Associate Partner
  > www.macromedia.com
  > ---------------------------------------------------------
  > Vancouver Island ColdFusion Users Group
  > Founder & Director
  > www.cfug-vancouverisland.com
  >   ----- Original Message -----
  >   From: Deanna Schneider
  >   To: CF-Talk
  >   Sent: Wednesday, February 11, 2004 12:51 PM
  >   Subject: cfcontent on cfmx/linux
  >
  >
  >   Hi all,
  >   We're in the process of upgrading to CMFX on linux from CF 5.0 on
  Windows.
  >
  >   Some excel download code no longer works:
  >   <CFHEADER NAME="Content-Disposition" VALUE="attachment;
  >   filename=foodcosts.xls"> <CFCONTENT TYPE="application/msexcel">
  >
  >   Results in '); } } function writeCloseBody() { if( debugMode ) {
  >   document.write('
  >   in the excel spread sheet - nothing else.
  >
  >   If I comment out this code, I get the html table, like I expect.
  >
  >   I've done a search, but haven't seen anything. Anyone have any insight?
  >
  >   -Deanna
  >
  >
  >   --
  >   Deanna Schneider
  >   UWEX-Cooperative Extension
  >   Interactive Media Developer
  >
  >
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to