Bug #12316: Have to increase memory_limit to be able to upload big files
| From: | jack at mobil dot cz | Date: | Mon, 23 Jul 2001 13:01:30 +0000 |
| Subject: | Bug #12316: Have to increase memory_limit to be able to upload big files | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-60744@lists.php.net to get a copy of this message | ||
From: jack@mobil.cz
Operating system: Linux
PHP version: 4.0.5
PHP Bug Type: Feature/Change Request
Bug description: Have to increase memory_limit to be able to upload big files
If you want to use file upload, you have to correctly set upload_max_size
and post_max_size. That's o.k. But you also have to set memory_limit and
max_execution_time to values high enough.
The former seems to be result of very poor design (I admit I haven't
checked the source code closely but as far as I can tell from a quick look
at main/rfc1867.c, the whole form is first read and stored in memory and
only then parsed and divided into files instead of being parsed on the
run).
I am not sure about the second issue since I don't know how exactly
max_exec*_time works. Is it counted from the very start of request or from
the moment script starts being executed? (that is -- if I set
max_execution_time to 30 secs and the upload takes 55 secs, will PHP die?
or will the upload finish and script will get 30secs to run?). I know I can
get around this limit -- I just wonder.
--
Edit bug report at: http://bugs.php.net/?id=12316&edit=1