[thelist] IE 5/Mac File Download Behavior

.jeff jeff at members.evolt.org
Thu Sep 5 02:18:01 CDT 2002


ben,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Ben Dyer
>
> Can someone explain this to me?  On this page:
>
> <http://216.234.235.161/index.cfm?FuseAction=page&PageID=4>
>
> I have a list of files for downloading.  Now, each link
> calls the script that pushes the file in question to the
> client-side (either it opens in the browser or it
> downloads the file).
>
> The script itself doesn't do anything spectacular.  At
> the moment, it merely <CFLOCATION>s to the file.
>
> Now, everything works great in every browser I can find...
> except for IE5/Mac (specific version doesn't seem to
> matter and neither does OS 9/OS X).  It opens the file
> (in "Preview" in OS X) after it saves the file on
> the desktop as the PDF, but gives it the name of
> "index.cfm," which means, at least on my machine at home,
> I can't reopen it without renaming it.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

this should do what you need.  just replace the various variables with the appropriate values.

<cfheader name="Content-Disposition"
          value="attachment; filename=#URLDecode(filename)#">
<cfcontent file="#full_path_to_file#"
           type="application/unknown" >

good luck,

.jeff

http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/




More information about the thelist mailing list