You need to change 'attached' to 'attachment' for it to work, like:
<cfheader name="Content-Disposition" value="attachment; filename=file.xml">
<cfcontent type="application/xml">
I'm doing the same with Excel and Word docs, works beautifully on Mac.
Jack
>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.
>
>
>
>
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
- force file download for a Mac Phillip B.
- Re: force file download for a Mac Patricia G. L. Hall
- Re: force file download for a Mac Phillip B.
- Re: force file download for a Mac Patricia G. L. Hall
- RE: force file download for a Mac Jack Dalaa
- RE: force file download for a Mac Paul Vernon
- RE: force file download for a Mac Dave Watts
- Re: force file download for a Mac Phillip B.