4. PHP Directives post_max_size upload_max_filesize upload_max_filesize PHP 5.2 File File header Part 1 Part 2 Part 3 decode decode HTTP Request HTTP Request Header Content-type: multipart/form-data HTTP Request Body Decoding needs tiny working buffer. The buffer is allocated within memory_limit .
5.
6.
7. If you want to read whole uploaded files in PHP, you'll consume huge memory. But it is another thing from file uploading. post_max_size > upload_max_filesize * (how many files) * 1.3 PHP 5.2