You are using cfcontent and cfheader to set the mime type and file name?

-----Original Message-----
From: Jacob Munson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 22, 2007 5:18 PM
To: CF-Talk
Subject: Very weird Safari issue

Short and sweet, here's what happens:

1.  User double clicks a file from a select box (files are listed from
a directory on the server)
2.  JavaScript code does a window.open to pop up openFile.cfm with
bunch of URL vars
3.  openFile.cfm discovers the MIME type of the selected file and
sends it to the browser using cfcontent
4.  If the file was a Word doc, Safari downloads the file, but names
it openFile.cfm instead of whatever.doc
5.  If you rename openFile.cfm to whatever.doc, it is indeed the
desired Word doc

If you open any other file type with Safari, you get the file with the
correct file name.  If you open a Word doc in IE or Firefox, it works
fine.

What the HECK?

-- 
My Sites:
http://www.techfeed.net/blog/
http://www.cfquickdocs.com/
http://cfformprotect.riaforge.org/



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade & see new features.
http://www.adobe.com/products/coldfusion?sdid=RVJR

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:273461
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to