> 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">

I don't see where you're actually serving the file itself:

<cfcontent file="...">

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:356017
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to