Ok, I was searching the archives for a way to force a file to download (rather then open in the browser) and came up with this code:

<CFHEADER NAME="content-disposition" VALUE="attachment; filename=new.doc">
<CFCONTENT TYPE="application/octet-stream" FILE="E:\path\new.doc" DELETEFILE="NO">  

This should cause the browser to prompt to download the file rather then try to open it, yes?
But I can't seem to get it to work.  It just displays the unformatted contents of the document, like this kind of stuff:

�Ïà��á>þÿ "$þÿÿÿ!

Am I doing something wrong here?  I should note that I'm using IE 6 (and so are the people who will use the application I'm developing).

Thank you!
jim
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to