note 13259 deleted from features.file-upload by irc-html
| From: | irc-html@php.net | Date: | Sat, 19 Jan 2002 20:33:49 +0000 |
| Subject: | note 13259 deleted from features.file-upload by irc-html | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-25355@lists.php.net to get a copy of this message | ||
Eike.Hoffmann@dlr.de wrote:
> Uploading really large files, for example max. 250 MB:
> 1. add hidden field MAX_FILE_SIZE=262144000 to form
> 2. php.ini: max_execution_time = 2400 (in seconds)
> 3. php.ini: memory_limit = 300M
> 4. php.ini: post_max_size = 262144000 (= 250M)
> 5. php.ini: upload_max_filesize: 262144000 (= 250M)
> 6. restart webserver
This is quite complicated.
In my opinion, handling the uploaded file data in memory and variables is a terribly bad idea,
especially if the files are big. I don't want to increase the swap size by one gigabyte just so
that I could upload 500MB files.
I recommend writing or finding a separate program with C/C++ to receive the files and handle them,
and it then submit forward to php (without the files).