As far as I know the file upload is handled by the web server, not the application server (coldfusion). The control is just handled over to the application server when the upload is finished. Therefore you have to set
such a limit in your web server configuration (maximimum post size). In apache this is "LimitRequestBody" ... http://httpd.apache.org/docs/mod/core.html#limitrequestbody Best regards, Peter ------------ Orginale Nachricht Von: brook <[EMAIL PROTECTED]> Betreff: Re: CFserver Timesout when uploading a 13mb file Datum/Zeit: Dienstag, 21. J�nner 2003 06:56:34 > I can attest to the same on CF4.5. We really need a way set a file size > limit and drop the connection or throw and error if it exceeds that size > while uploading. Server Side. That would be great. Because even if the file > is not read into RAM, if the file is HUGE, and your max simultaneous > connections is set to 10, and someone uploads 10 big ass files, that could > be like a DOS attack still. > > Brook > > At 12:06 AM 1/21/03 -0500, you wrote: > >Yeah, I can attest to it being totally like a DOS attack under CF5... > >that's what we still run... > > > >I have ran it on the same switch with the same computer feeding the > >file as running CF... I have tried it a desk away.. same effect, an > >unresponsive APP server... > > > >All in Windows of course... Definitely would like to hear more about > >MacroMedia's evaluation of this item... > > > >I plan on running it through more tests just to make sure all is good... > > > >In my world I have mostly tested on Win2k and NT under CF5.. using IE > >6... > > > > > >Paris Lundis > >Founder > >Areaindex, L.L.C. > >http://www.areaindex.com > >http://www.pubcrawler.com > >412-292-3135 > >[finding the future in the past, passing the future in the present] > >[connecting people, places and things] > > > > > >-----Original Message----- > >From: Christian Cantrell <[EMAIL PROTECTED]> > >Date: Mon, 20 Jan 2003 23:53:18 -0500 > >Subject: Re: CFserver Timesout when uploading a 13mb file > > > > > I checked on this internally, and it seems that the server writes the > > > > > > bytes from the input stream (the file being uploaded) directly to the > > > > > > file system, and more specifically to a temp file that then gets > > > moved > > > to the specified directory (at least this is the behavior of MX and > > > ColdFusion 5). From a security standpoint, this is the right > > > behavior. > > > It might technically be slightly faster if the server were to try > > > to > > > buffer the file in memory, however 1) this is a huge security risk as > > > > > > it would clearly be a denial of service attack opening, and 2) > > > realistically, it probably would not affect the speed considerably if > > > > > > at all since the bottleneck is most likely bandwidth rather than the > > > process of writing the bytes to the file system. In fact, saving the > > > > > > file is probably one of the fastest steps in the process. > > > > > > As far as why uploads are timing out, I'm really not sure, except > > > that > > > I've seen this before, and it is often a client issue, not an issue > > > with the server. In theory, the client should not time out as long > > > as > > > data is moving from the client to the server, however in practice, I > > > have seen several inexplicable ClientDisconnectExceptions in various > > > projects in the past. A ClientDisconnectException is a Java > > > exception > > > that gets thrown when the client disconnects before it has finished > > > writing all of the request to the output stream. Wherever a client > > > has > > > the opportunity to upload a large file (anything over 1MB), you are > > > likely to see these errors. Possible causes include users > > > intentionally stopping the download (the client has no friendly way > > > to > > > convey to the server that the user simply changed his mind), clients > > > timing out due to pitiful dial-up speeds, connections being dropped > > > by > > > ISPs or saturated 802.11b networks, browsers crashing, computers > > > crashing, people tripping over power cords, etc. To be honest, I > > > don't > > > know, but I can confirm that it should not be an issue of running out > > > > > > of RAM and does not present a security vulnerability in ColdFusion > > > MX. > > > > > > Christian > > > > > > On Monday, January 20, 2003, at 02:53 PM, Joshua Miller wrote: > > > > > > > I thought it saved it as a TMP file ??? Does it actually store in > > > RAM ? > > > > > > > > Joshua Miller > > > > Head Programmer / IT Manager > > > > Garrison Enterprises Inc. > > > > www.garrisonenterprises.net > > > > [EMAIL PROTECTED] > > > > (704) 569-9044 ext. 254 > > > > > > > > > > > ********************************************************************* > > > ** > > > > * > > > > ************* > > > > Any views expressed in this message are those of the individual > > > sender, > > > > except where the sender states them to be the views of > > > > Garrison Enterprises Inc. > > > > > > > > This e-mail is intended only for the individual or entity to which > > > it > > > > is > > > > addressed and contains information that is private and > > > confidential. If > > > > you are not the intended recipient you are hereby notified that any > > > > dissemination, distribution or copying is strictly prohibited. If > > > you > > > > have received this e-mail in error please delete it immediately and > > > > advise us by return e-mail to > > > [EMAIL PROTECTED] > > > > > > > ********************************************************************* > > > ** > > > > * > > > > ************* > > > > > > > > > > > > -----Original Message----- > > > > From: Todd [mailto:[EMAIL PROTECTED]] > > > > Sent: Monday, January 20, 2003 2:47 PM > > > > To: CF-Talk > > > > Subject: Re: CFserver Timesout when uploading a 13mb file > > > > > > > > > > > > RAM -- CFFILE I believe uploads into pure ram before it dumps to > > > disk. > > > > > > > > ~Todd > > > > > > > > At 11:40 AM 1/20/2003 -0800, you wrote: > > > >> I have a 13mb .doc file being uploaded using a simple CFFILE. The > > > >> server timesout. After I zipped the file down to a 9mb file, it > > > was > > > >> OK. Does anyone know what triggers the limitation? > > > >> > > > >> Thanks > > > >> Michael > > > > > > > > > > > > ---------- > > > > Todd Rafferty ([EMAIL PROTECTED]) - http://www.web-rat.com/ > > > > Team Macromedia Volunteer for ColdFusion > > > > http://www.macromedia.com/support/forums/team_macromedia/ > > > > http://www.devmx.com/ > > > > > > > > ---------- > > > > > > > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

