Find it:

Friday, June 28, 2013

Add large Files config in PHP

Like two days ago I had a problem trying to upload via POST some text files of about 15 mb and I was getting an error. That was because in the PHP configuration you have to change some stuff. By default PHP allowed you to upload files of 8mb.

The properties that you have to change are: (php.ini)

upload_max_filesize 20M
post_max_size 20M

And the timeout duration you have to change it as well:

max_input_time 300 (this is around 5 minutes)
max_execution_time 300

You can look these changes in your phpinfo file or you can create one coding:

echo phpinfo();

No comments:

Post a Comment