Re: php File upload
| From: | Tom | Date: | Thu, 07 Aug 2008 13:26:11 +0000 |
| Subject: | Re: php File upload | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-277812@lists.php.net to get a copy of this message | ||
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@gmail.com> schrieb im Newsbeitrag
news:af8726440808070519m487ac49aq36ef02140560dcbd@mail.gmail.com...
>> 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