ketankshah
IS-IT--Management
I want to download an XLS or a PDF file from the site. I tried this on my local webserver.
1. When my files are in CFDOCS directory and my calling .cfm page is also in the same directory it downloads the file but if I move these files to my application directory i.e. CFIDE\myapps, it is showing me this error.
"Internet Explorer was not able to open this internet site. The requested site is either unavailable or cannot be found. Please try again latter."
My script is
<CFCONTENT TYPE="application/msexcel"
FILE="#GetDirectoryFromPath(GetTemplatePath())#data\testdoc.xls" DELETEFILE="No">
Why is so?
2. When I downloaded the file from CFDOCS, as mentioned in point 1, it downloaded with the name of the calling cfm file i.e. download.cfm. How to maintain the same name while downloading the file ?
Ketan
1. When my files are in CFDOCS directory and my calling .cfm page is also in the same directory it downloads the file but if I move these files to my application directory i.e. CFIDE\myapps, it is showing me this error.
"Internet Explorer was not able to open this internet site. The requested site is either unavailable or cannot be found. Please try again latter."
My script is
<CFCONTENT TYPE="application/msexcel"
FILE="#GetDirectoryFromPath(GetTemplatePath())#data\testdoc.xls" DELETEFILE="No">
Why is so?
2. When I downloaded the file from CFDOCS, as mentioned in point 1, it downloaded with the name of the calling cfm file i.e. download.cfm. How to maintain the same name while downloading the file ?
Ketan