> 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?
This of that example as "foo". It's for illustration only :-) Robert Harrison Director of Interactive Services Austin & Williams Advertising I Branding I Digital I Direct 125 Kennedy Drive, Suite 100 I Hauppauge, NY 11788 T 631.231.6600 X 119 F 631.434.7022 http://www.austin-williams.com Blog: http://www.austin-williams.com/blog Twitter: http://www.twitter.com/austin_williams -----Original Message----- From: Dave Watts [mailto:dwa...@figleaf.com] Sent: Tuesday, June 26, 2012 10:27 PM To: cf-talk Subject: Re: CFHeader Problem > 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:351737 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm