note 36889 deleted from features.file-upload by betz
| From: | betz@php.net | Date: | Sat, 05 Nov 2005 09:42:41 +0000 |
| Subject: | note 36889 deleted from features.file-upload by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-98116@lists.php.net to get a copy of this message | ||
Note Submitter: Shekhar Govindarajan
----
To upload large files, besides setting upload_max_filesize, you must also set post_max_size in
php.ini or using ini_set() function. Keep the value to more than the maximum expected size of the
upload. This is because, you may be sending other post data along with the upload file. For example:
post_max_size = 601M
This should be a safe setting if you want to upload files of around 600 MB (as specified by
upload_max_filesize = 600M)
While uploading large files, you should also increase the values for max_execution_time and
max_input_time directives. Else your script will timeout or timeout before being able to parse the
entire input/uploaded data.