> i have a question about what to put in a CFHEADER statement 
> such that a download of the file in question can be forced 
> (instead of viewed). Example: a query to a DB results in data 
> which can either be shown, or which get parsed out in a CSV 
> format (to be downloaded for import into, say, a Word 
> mail-merge document). In this example that is still just a 
> content type="text/txt" format--so how could someone click 
> on a "click here to download this data for import into Word" 
> link and have it actually download instead of displaying that 
> file. (As you know many browsers have content type="text/txt" 
> set to display rather than download, whereas a ZIP file is
> often set to download when a link to it is followed.).

You can specify the MIME type "application/unknown", and that'll usually
force the browser to prompt the user to save the file locally.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]

Reply via email to