You can tell the browser to treat the page as an attachment by setting the content-disposition using CFHEADER
eg. <cfheader name="Content-Disposition" value="attachment; filename=myFile.xls"> <cfcontent file="c:\documents\myFile.xls" type="application/vnd.ms-excel" deletefile="No" > In IE5 & 6 this will force the file to download and will default the filename in the save as dialog to myFile.xls. Unfortunately IE4 thinks it knows better and will display the file if it can, whatever you tell it you or the user wants it to do. Adrian _____________________________________________ adrian marshall lead hat limited 28-29 great sutton street . london . ec1v 0ds http://www.leadhat.co.uk/ e: [EMAIL PROTECTED] p: 020 7566 9450 f: 020 7566 9458 ----- Original Message ----- From: "Aseem Mal" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, August 16, 2002 8:16 PM Subject: [ cf-dev ] Enforce download Is there a way I can enforce downloading a given file (like a pdf document or Excel sheet), so that the user is forced to download it and not open the document withing the browser, like IE does for excel & pdf's. Someone, any ideas? -Aseem. ---------------------------------------------------------------------------- ---- > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > For human help, e-mail: [EMAIL PROTECTED] > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
