Sell And Buy

Monday 22 December 2014

How to solve "The uploaded file exceeds the upload_max_filesize directive in php.ini. error" Error Easily on Wordpress


To avoid  the uploaded file exceeds the upload_max_filesize directive in php.ini. error just read the follwing and work according to this,so that you can upload your file easily

Step 1- Just Open c:/xampp/php/php.ini

Open php.ini file check "upload_max_filesize" , You will see 'upload_max_filesize=2M',

Now change  it to 'upload_max_filesize=100M'.

Step 2-

you may want edit the .htaccess file instead of doing it to your php.ini file. most wp install are hosted on a sharing environment and with no access to the php.ini at all.
i have tried adding a php.ini into the wp-admin folder but it didn't work, this one below works and not just on wp but to all web applications that uses php to upload.
just copy and paste the code below to your .htaccess file
########
php_value upload_max_filesize 50M
php_value post_max_size 50M
php_value max_execution_time 500
php_value max_input_time 500
#########

No comments:

Post a Comment