Re: Urgent answers needed for FILE UPLOAD problem....

From: Date: Fri, 26 Jan 2001 02:24:46 +0000
Subject: Re: Urgent answers needed for FILE UPLOAD problem....
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-36809@lists.php.net to get a copy of this message
Because of the way the code is currently written, a file upload ends up in RAM before it gets written to disk. If you want to upload 1Gig files, you need >1Gig of RAM. That's crap, we know, and Jim Winstead has volunteered to fix this. Not sure what the timeline is on it yet though. -Rasmus On Thu, 25 Jan 2001, Tim Meader wrote: > Hello all. I've spent the past month or two implementing a file upload > utility for the web based on PHP's http upload method. It works fine for > smaller files, and it's been working fine for files I've tried up to and > including 400 megs at a time. The problem I'm having is that we want to > roll this out on a center-wide scale, but that would most likely mean files > up to 1Gig being uploaded at a time. Is this possible through the http > upload process. I've been unsuccessful thus far to upload a file this large > for some reason. Upon checking the Apache error_log, I found the following > message: > > FATAL: erealloc(): Unable to allocate 112568001 bytes > [error] PHP Warning: File Upload Error - No Mime boundary found after start > of file header in unknown line 0 > > Now, am I correct in thinking that the second line is merely a result of > the failed upload? If so, then I suppose that can be disregarded, but which > program is generating the erealloc(), Apache or PHP? > > I've been following threads on File Upload for quite a while now, and all > relevent settings in the php.ini are set correctly to allow file uploads of > this size (at least in theory). All settings having to do with upload > limits are set at "2000000000", however, no documentation states what value > this setting stands for (kb, Mb, etc.), so this SHOULD roughly be equal to > 2Gigs, assuming that it defaults to bytes. Also the timeout has been set to > 86400 seconds, ie a 24hour period. > > The current box this is running on is a Ultra 5 running Solaris 7, Apache > 1.3.14, with PHP 4.0.4. It has 256 megs of ram, and the partition being > used for this test phase is 18 gigs, so size shouldn't be an issue. The > temp upload directory in the php.ini has also been set to use a temp folder > on this same partition. > > PLEASE, any suggestions you have would be MUCH appreciated. Thank you in > advance for any and all replies. Hope to hear something soon! > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#36809) next »