Wednesday, October 11, 2006

PHP: Uploading larger files than default PHP setting.

In php.ini, please change the following values to appropriate MB value:
upload_max_filesize - limit of PHP's allowable size per file.
post_max_size - total size of form data including the files uploaded.

Example:
upload_max_filesize = 5M
post_max_size = 80M


Restart Apache server everytime php.ini is changed.

Reminders
  • Upload directory must be writable.
  • Form enctype should be multipart/form-data