Randy, This is more than likely your web server restricting the downloading of .exe files and not ColdFusion. Check with your server config.
On Tue, Jun 18, 2013 at 4:13 PM, Randy Robinson <rlrobin...@sartellgroup.com > wrote: > > I'm attempting to use cfheader/cfcontent to allow our users to download > files and programs from our site. With *.exe files it is copying the file > name correctly but the size does not match to the original file size. For > example, the site has a file named WG.exe with a size of 1587KB, but it > downloads as users/Randy/WG.exe with a size of 11kb. The code needs to work > for all types of files. Here is the code: > > <cfheader name="Content-Disposition" value="attachment; filename=#fName#" > /> > <cfcontent type="application/unknown"> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:355992 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm