Re: php File upload
| From: | Luke | Date: | Fri, 08 Aug 2008 08:00:06 +0000 |
| Subject: | Re: php File upload | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-277875@lists.php.net to get a copy of this message | ||
Maybe there is some configuration in the server somewhere causing it to incorrectly use the tmp?
Luke Slater
On 8 Aug 2008, at 08:48, Torsten Rosenberger <rosenberger@taoweb.at> wrote:
Helloon 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 ?no need for swap my system OpenSuSE 10.3 512MB RAM my uploaded file -rw-r--r-- 1 wwwrun www 1000000000 8. Aug 09:39 mytestfile.out memory befor upload and during upload are nearly the same and no swaptotal used free shared bufferscachedMem: 510488 504728 5760 0 60728301476-/+ buffers/cache: 142524 367964 Swap: 2104432 28756 2075676a du shows that the tmp file is greater as the memory du -h /tmp/phpMmAGdN659M /tmp/phpMmAGdNand grows du -h /tmp/phpMmAGdN663M /tmp/phpMmAGdNSo i think your script is wrong maybe you trie to read the hole contend from the upload file in a variable so you reach the memory post your script ro see if its is correct. BR/Torsten --PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php