Ask a Question related to Coldfusion - Getting Started, Design and Development.
-
kt03 #1
cfhear
I don't know why my code isn't working and i don't see any error. See the
attached code
Thanks
==============
index.cfm:
=========
<cfoutput>
<a href="http://#site#/admin/openfile.cfm">SCRIPT.ENTRA</a><br>
<a href="http://#site#/admin/openfile.cfm">SCRIPT.LDIF</a>
</cfoutput>
openfile.cfm
==========
<cfheader name="Content-Disposition" value="attachment; filename=script.entra">
<cfcontent type="application/octet-stream" file="script.entra" deletefile="no">
<cfheader name="Content-Disposition" value="attachment; filename=script.ldif">
<cfcontent type="application/octet-stream" file="script.ldif" deletefile="no">
kt03 Guest
-
mxstu #2
Re: cfheader
>I want able to download from the broswer....
It sounds like it is working correctly. You click on the link and your>When I open either one of these link, the dialog box open fand
>force you to either open or save or cancel
browser is prompting you to indicate where you want to save the download
file... or if you want to open it. What were you expecting the code to do?
mxstu Guest



Reply With Quote

