Works like a charm.  However, TYPE="text/plain" in the CFCONTENT tag returns
it to the browser.  I replaced text/plain with application/unknown and it
works fine.

Thanks for the help!
Dave



----- Original Message -----
From: "Zachary Bedell" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 28, 2000 8:41 AM
Subject: RE: CFContent MIME Types


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> Is there a list of the different MIME types that should be used
> with CFContent?  I'm returning a .txt file, but when it comes up
> on the user's
> machine, it comes up with the name of the script (script.cfm)
> instead of the
> file name (xyz.txt).  I think it has something to do with the
> MIME type in
> the CFContent tag.

Your MIME type for that should be 'text/plain'.  The problem isn't
the MIME type, but the way browsers handle downloaded filenames.

To make this work under most versions of IE, add this line above the
CFCONTENT tag:
<cfheader name="Content-Disposition" value="attachment;
filename=""xyz.txt""">

Netscrape ignored this header last time I checked.  I don't know if
they've fixed it yet.  For Netscape, you have to play around with
masking URL parameters, but that got broken w/ NT SP6, so I don't
remember how to do it any longer.

Best regards,
Zac Bedell

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBOYF/dQraVoMWBwRBEQLUIgCgyN26kM4sVjIMaFSgDzbt9G05Ko8AniSz
oQYQfgsXAQ3K5pj6E0wX5NV0
=Ouxp
-----END PGP SIGNATURE-----
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to