Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
Shivaan Keldon #1
Download file by CFHEADER
Hi !
I try to force-download of a file by the CFHEADER tag, but my browser offer me
to save the cfm file, and not downloadable file
here my code :
<cfset ifile = "../dump/" & #url.ifile#>
<cfheader NAME="Content-Disposition"
VALUE="attachment; filename=#ifile#">
what can I do to download the ifile ?
ps : I'm a french guy, so... sorry if I don't explain my problem very well ^^
Shivaan Keldon Guest
-
[CFHEADER] greek charset...
Hi, this is my first message. I have a problem with cfheader tag The problem is that I need a tsv file but it doesn't recognize greek charset (or... -
301 redirect with cfheader
Same probem here, CF MX 6.1 and even CF MX 7 doesn't handle this correctly Macromedia : how can we make 301's using Coldfusion ? -
cfcontent ,cfheader download
i am sending an email to users in which there is a link for the coldfusion template , cfm page downloads the pdf file from the server , ... -
MIMEtype and Cfheader/Cfcontent
Hello all, We are using cfheader and cfcontent with a custom tag to hide the url of our downloadable files. We also have an exception page set to... -
Using CFHeader and CFContent to control file downloads
I am programming a CF application for an online university. They need to be able to upload files to the server, and then authorize students... -
Stressed_Simon #2
Re: Download file by CFHEADER
You need to use this in conjunction with cfcontent to set the MIME type of the file.
Does that make sense?
Stressed_Simon Guest
-
maquejp #3
Re: Download file by CFHEADER
Hello (bonjour)
Maybe this can help you...
<cfheader name="Content-Length" value="#getfile.size#">
<cfheader name="Content-Type" value="application/octet-stream">
<cfheader name="Content-Disposition" value="attachment;filename=#url.file#">
<cfheader name="Content-Location" value="#URLEncodedFormat(url.file)#">
<cfcontent type="application/octet-stream"
file="#session.securefiles#\#url.file#">
maquejp Guest
-
Shivaan Keldon #4
Re: Download file by CFHEADER
that works !!
thanks a lot, maquejp ^^
Shivaan Keldon Guest



Reply With Quote

