Re: php File upload

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



smaller files is no problem. The error occoured, if the uploaded File is 
bigger than the installed  main memory.
Ok, i know that http ist not designed for big uploads. But on a big website 
with upload enabled and 30 users upload simultan a 20 MB File, they lost the 
upload while php hold all in memory/Cache and swap is not used. I  don't 
understand why php write the upload chunck for chunck (i can look this)  in 
upload temp file AND holds the upload in main memory.



""Richard Heyes"" <richard.heyes@xxxxxxxxx> schrieb im Newsbeitrag 
news:af8726440808070519m487ac49aq36ef02140560dcbd@xxxxxxxxxxxxxxxxx
>> No Apache limit, enough diskspace, no permission problem.
>> Fact is: During upload looking at main memory, goes to 0 and if 0 
>> uploadet
>> tmp File was deleted and no error occur.
>>
>> It was great, if anybody can test such a upload. The uploaded File musst 
>> be
>> greater as main memory. While teh uload is running, take a look at memory
>> with vmstat. free is goin to 0, no swap is used. I don't know, that is a
>> suse 10.2 effcet only.
>
> What happens with a smaller file? Say 500Mb? You could gradually
> increase the file size until you get the error.
>
> -- 
> Richard Heyes
> http://www.phpguru.org 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux