WordPress will automatically show the maximum file upload size limit when you are uploading images or media files. And here’s how to check your maximum file upload size limit on WordPress website? For file upload size limit, you can simply go to Media » Add New page and you will see the maximum file upload size limit for your WordPress site.
There are cases where we have seen that just by adding the following code in theme functions.php file, you can increase the upload size:
For this method, you will need to access your WordPress site root folders by using FTP in your hosting account’s Cpanel dashboard.
In most cases, if you are on a shared host, then you will not see a php.ini file in your directory or Cpanel directories or if you do not see php.ini, then create a file named php.ini and upload it in the root folder. In that file you can add the following code:
This method is reported to work for many users, statically. Remember if 64 doesn’t work, then try 20MB (sometimes that work).
Some people have tried to use the .htaccess method where by modifying the .htaccess file in the root directories, you can increase the maximum upload size in WordPress. Edit the .htaccess file in your WordPress site root folders and add the following code in it: