Fix the HTTP 500 Error on File Uploads

By [)ia6l0 iii

By default, the web servers are configured for a file size of 2 MB. Read below to know how to configure it for a higher value.

You need to change few values to upload a file of bigger file size.

1) You can change the following values in the php.ini file.
post_max_size = 40M
upload_max_filesize = 40M

2) You can create a .htaccess file in the root folder of the web server.  and place the following code in it.
php_value upload_max_filesize 40M
php_value post_max_size 40M
php_value max_execution_time 400
php_value max_input_time 400

The above values allow you to upload a file of 40 Mega bytes.

Fix the HTTP 500 Error on File Uploads  (872 Views)
Create New Account