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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to