How can I increase max file upload in WordPress?

I set in php.ini

upload_max_filesize = 64M
post_max_size = 64M

Then try .htaccess file

Read More
php_value  upload_max_filesize  64M
php_value  post_max_size  64M

And in wp-config.php define('WP_MEMORY_LIMIT', '64M'); But nothing helps me. The max upload size left 32px;

How can I increase max file upload in WordPress?

Related posts

Leave a Reply

3 comments

  1. Earlier adding define('WP_MEMORY_LIMIT', '64M'); just after <?php on wp-config.php always worked for me. For the latest wordpress version it isn’t working. I don’t know the actual reason behind it but it still works for my older wordpress sites which I never updated from last year.

    Follow these steps for latest WordPress:

    1) Put this at the end of your php.ini

    upload_max_filesize = 512M
    post_max_size = 512M
    max_execution_time = 300
    

    2) Restart apache(Setting won’t take effect until apache is restarted)

    Tested and working.

    I tried both .htaccess and and php.ini on wp-admin methods as well, They
    aren’t working either.

  2. You can try in PHP :

    ini_set('post_max_size', 100000); // 10Mo
    ini_set('upload_max_filesize', 100000);
    

    But be careful, with some of server supplier you cannot change this limit…