|
Mailing Lists
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
CFHeader Problem
What's wrong with the below?Robert Harrison 06/26/12 10:51 A >>What's wrong with the below?Claude_Schnéegans 06/26/12 11:04 A According to the documentation the default is "yes".Robert Harrison 06/26/12 11:08 A Which CF Version? What is the file size of myfile.zip? And how much memoryBobby 06/26/12 10:27 P Sorry. I didn't realize it was solved. It would help to not change theBobby 06/26/12 10:32 P > What's wrong with the below?Dave Watts 06/26/12 10:27 P 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? 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_wi >>What's wrong with the below? Don't you need RESET="yes" inside the CFCONTENT tag? According to the documentation the default is "yes". 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 >>What's wrong with the below? Don't you need RESET="yes" inside the CFCONTENT tag? Which CF Version? What is the file size of myfile.zip? And how much memory is allocated to CF? On 6/26/12 11:08 AM, "Robert Harrison" <robert@austin-williams.com> wrote: ----- Excess quoted text cut - see Original Post for more ----- Sorry. I didn't realize it was solved. It would help to not change the subject of the thread ;-) On 6/26/12 10:26 PM, "Bobby" <bobby@acoderslife.com> wrote: ----- Excess quoted text cut - see Original Post for more ----- ----- Excess quoted text cut - see Original Post for more ----- 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 > 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 ----- Excess quoted text cut - see Original Post for more ----- 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
|
May 22, 2013
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||