Re: php File upload
| From: | Tom | Date: | Sat, 09 Aug 2008 10:08:05 +0000 |
| Subject: | Re: php File upload | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-277879@lists.php.net to get a copy of this message | ||
Problem solved (at one machine)!
I can upload a ~ 2 GB File now on a machine with 1 GB Main Memory! No
Problem, swap is used but no break now.
The answer is, i think, the dramatical overhead for http upload, simply my
post_max_size and upload_max_size are to small. If i will upload 1 GB it
must minimum 1.5 GB (better more) on this limit variables.
Im very glad to fix this problem, but the next one is here: Other machine
(but 2 GB Ram), same suse version, same (working now) php.ini with limits
to 5000M now and i can't upload a File greater than 900MB.
A file under 900MB i see the tmp file growing. A File with +1 GB no temp
file seeing at all and break after a view minutes. It's horrible with no
error codes and wasting pure of time :-(
Now i begin at bottom on this machine.
Thanx for alle, who look for this problem.
Now we are the very only that can say that php 100% working file uploads if
memory lower than the file size :-)
""Tom"" <tg@anifit-tiernahrung.de> schrieb im Newsbeitrag
news:E5.37.29324.4C8F9984@pb1.pair.com...
> Hi,
>
> on a linux system (Suese 10.2) with 1 GB memory its not possible to upload
> via http a 1 Gb File. Thats no limit problem on my php config. i can
> look the mem stats when uploading and the growing tmp file. If the temp
> file has 900 MB, Main Memory free is 0 and the script aborts and php
> deletes the tmp file.
>
> Why don't php use swap memory ?
>
> Greets Tom
>