Content-Length usage
June 26, 2007
Whenever I need for Coldfusion to force a file download I use code similar to this: <cfset cFile = “somefile.txt”> <cfset cDirectory = “C:\”> <cfheader name=”Content-Disposition” value=”attachment;filename=””#cFile#”””> <cfcontent type=”application/unknown” file=”#cDirectory##cFile#”> The problem is that I can’t see the total file size. The message varies by browser, but the situation is the same. The user can […]
read more