How to change the PHP maximum upload file size
The default maximum upload size for files is 2MB. If you have access to .htaccess files, you can change the maximum upload size from there. Here is what you should write in .htaccess files for apache:
php_value max_execution_time 1200
php_value memory_limit 30M
php_value post_max_size 10M
php_value upload_max_filesize 10M
In the first line you increase maximum execution time from 30 seconds (default) to 1200 seconds. This way if the file is large, you won't get a timeout browser error.
In the second line you increase memory limit to 30MB.
The third line increases post maximum size to 10MB.
And the last line increases upload maximum filesize to 10MB.
No comments:
Post a Comment