> I'm trying to make a mac download an XML file that is dynamically
> created. I can get it to work on a PC but a Mac just opens the file in
> the browser. This is the CF that I'm using. Any ideas on what I need to
> do to make this thing work?
>
> <cfheader name="Content-Disposition" value="attached; filename=file.xml">
> <cfheader name="Expires" value="#Now()#">
> <cfcontent type="application/xml">
>
> --
> Phillip B.

Try this:

<cfheader name="Content-Disposition" value="attachment; filename=file.xml">
<cfcontent file="[pathtofile]\sartxfercy.txt" type="application/unknown" >

I don't know for sure if you need the file="[pathtofile]"  I just know
that in my application, which works on the mac, I used that attribute.
The important part, though is that you specify type="application/unknown".

Works for me.

-Patti
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to