how to change max file upload size WordPress 4.9.8 [closed]

As the title states i have tried it with the htaccess file to change the maximum upload size and nothing i have even created a php.ini file in the root of the wordpress folder and still nothing can some here please help me.

4 Answers
4

php.ini should be in the /wp-admin/ folder, not the root. Also, I’ve had success using a combination of the following in my /wp-admin/php.ini file AND a directive to increase the memory in my wp-config.php file, increased memory is needed when uploading larger files.

Put something like this in your php.ini file (change values as you need to):

    memory=512MB
    post_max_size=20MB
    upload_max_filesize=50MB

Then in your wp-config.php file, add something like this:

    define('WP_MEMORY_LIMIT', '512M');

The upper memory limit doesn’t need to be the same in both, but I find it works best when it is the same.

Leave a Comment