2010年9月10日 星期五

網頁下載檔案

 <cfheader name="Content-disposition" value="attachment;filename=info_pps/#sel_file.pps_file#">
<cfhttp url="#expandPath('goods_A1.htm')#" method="GET" resolveurl="YES">
<cfcontent type="application/x-mspowerpoint" file = "#expandPath('info_pps/#sel_file.pps_file#')#">

ex:
 
<cfheader name="Content-disposition" value="attachment;filename='goods_A1.pps'><!---下載顯示的檔名--->
<cfhttp url="#expandPath('goods_A1.htm')#" method="GET" resolveurl="YES">
<cfcontent type="application/x-mspowerpoint" file = "#expandPath('goods_A1.pps')#"><!-----實際下載檔案路徑與檔名----->

沒有留言:

張貼留言