> What's wrong with the below?
>
>        <cfheader name="Content-Disposition" value="attachment; 
> filename=myfile.zip">
>        <cfcontent type="application/zip" 
> file="d:\inetpub\wwwroot\thedirectory\myfile.zip ">
>
> The file is there and the path is correct. I can download the file directly 
> by typing in http://mysite.com/thedirectory/myfile.zip
> in the browser, but whenever I try to use CFHEADER to serve the files it just 
> spins (even though it's in a CFTRY it does not
> thrown an error). When I abort (exit the spinning page) I get a diagnostic 
> dump:
>
>        Java heap space null
>        The error occurred on line -1.
>
> What the heck? I I doing something wrong?

I realize your question has already been answered - and for the
record, I like Ben Nadel's solution to this very much - but I have a
related question for you. If you're serving files in your web root,
why are you bothering to use CFCONTENT to serve them? Just serve a
link to the file in question, and let the web server do the work. If
there's some business reason why you don't want to do that, you
probably shouldn't store the files in a web-accessible directory.

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, on

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

Reply via email to