*sigh*

ok, I've got this old chestnut - *again*

<cfcontent type="application/unknown" reset="YES">
<CFHEADER NAME="content-disposition" VALUE="attachment;
filename=""#original_doc_name#""">
<cfcontent file="#outside_root_path##doc_name#" deletefile="No"
type="application/unknown">

Trying to get a file to download with the filename in the save as box.
Cannot use inline as some users report activex errors when we do this (the
small box at the top left of the page)

So - we're using attachment - only the name of the cf template appears in
the save as dialogue (IE5.5)

Worse still - if using win98, it actually downloads an HTML file instead of
the real file (unless the user 'opens' the file, then 'opens' it again then
'saves')!!!!!!

WinNT IE5.5 comes up with the correct name if a user presses save even
though the original filename comes up with the name of the cf template.

I've tried reading RFC 2616 and changed the MIME type to
application/octet-stream as the recommended default unknown MIME type - no
effect
I've tried the Allaire forums and used multiple escaped " (also as per
rfc2616) for the filename param of 'content-disposition' - to no avail.

In saw a possible fix in the forums which involved using
"download.cfm/#filename#" in the url, but the owner claimed that he couldn't
get it to work on CF4.5, only CF5 and this particular site *has* to be on
CF4.5 (for now)

can anyone help me beat my personal nemesis? I come across this time and
time again and I'm a very weary traveller.

-------------------------------------------------------
Rich Wild
Senior Web Developer

-------------------------------------------------------
e-mango.com ltd                      Tel: 01202 587 400
Lansdowne Place                      Fax: 01202 587 401
17 Holdenhurst Road
Bournemouth                   Mailto:[EMAIL PROTECTED]
BH8 8EW, UK                      http://www.e-mango.com
-------------------------------------------------------
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of e-mango.com ltd,
unless otherwise explicitly and independently indicated
by an authorised representative of e-mango.com ltd.
-------------------------------------------------------



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to