Hi,
Thanks to the great thread on "CFCONTENT and File Download", I was able to create a
download page for 2page.exe, a self-extracting winzip file (contains 12 Microsoft word
documents).
However, when the "Save As.." box comes up, instead of "2page.exe" as the file name,
the dialog box defaults to the name of the CF file being executed (in this case,
FileDownload.cfm). I can't figure how to pass it the name of the file being
downloaded. If I rename FileDownload.cfm to 2page.exe, I get an error message. Here's
the code for
FileDownload.cfm:
<cfset name="2Page.exe">
<cfset filename = "D:\1YWNMembers\Templates\#name#">
<form action="#filename#" method="POST">
<CFHEADER name="Content-Disposition" value="attachment;
filename=#filename#">
<CFCONTENT type="application/octet-stream"
deletefile="no"
file="#filename#">
<input type="hidden" name="filename" value="#filename#">
<input type="Submit" value="Download File">
</form>
TIA for all of your help!
sharon
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
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.