I don't know if this totally applies to your situation, but I found that I
had to use a different CFHEADER value for Mac. The other part of this (the
fileMimeType) was to force the browser to pop up a "save as" dialog box --
that was a requirement of the App I was doing -- this keep the excel file
from opening in a browser window.
<cfif os is "MAC">
<cfset headerValue = "attachment; filename=#fileName#">
<cfset fileMimeType = "application/x-msexcel">
<cfelse>
<cfset headerValue = "filename=#fileName#">
<cfset fileMimeType = "application/unknown"
</cfif>
<CFHEADER NAME="Content-Disposition"
VALUE="#headerValue#">
<CFCONTENT TYPE="#fileMimeType#"
DELETEFILE="yes"
FILE="#tmpDir#\#fileName#"
RESET="yes">
-----Original Message-----
From: Rich Z [mailto:[EMAIL PROTECTED]]
Sent: Sunday, June 10, 2001 5:50 PM
To: CF-Talk
Subject: RE: CFCONTENT Problem
Still happening. Is there something I need to do on the server side?
-----Original Message-----
From: Dain Anderson [mailto:[EMAIL PROTECTED]]
Sent: Sunday, June 10, 2001 4:38 PM
To: CF-Talk
Subject: Re: CFCONTENT Problem
Give this a shot:
<CFHEADER NAME="Content-Disposition" VALUE="attachment;
filename=file.mp3">
<CFCONTENT TYPE="unknown" FILE="c:\archive\file.mp3" DELETEFILE="No">
Dain Anderson
Caretaker, CF Comet
http://www.cfcomet.com/
----- Original Message -----
From: "Rich Z" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Sunday, June 10, 2001 4:17 PM
Subject: CFCONTENT Problem
> I'm sure this problem has been addressed before, but here it is:
>
> I'm trying to make a file available for download through CFCONTENT.
The
> cfm page send.cfm looks like this::
>
> <cfcontent type="unknown" file="c:\archive\file.mp3" deletefile="No">
>
> The problem is, instead of sending that file, it sends the right file
> but it names it send.cfm instead of the actual file name.
>
> Any idea how to resolve this?
>
> Thanks,
> Rich
>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists