How To Check Your WordPress Max Upload Size?

  • May 29 ,2019

WordPress will automatically show the maximum file upload WordPress max upload size limit when you are uploading images or media files. And here you can learn how to check your WordPress max upload size?  For file upload size limit, you can simply go to Media » Add New page and you will see WordPress max upload size.

  • Theme Functions File

There are cases where we have seen that just by adding the following code in the theme functions.php file, you can increase the upload size:

  • @ini_set( ‘upload_max_size’ , ’64M’ );
  • @ini_set( ‘post_max_size’, ’64M’);
  • @ini_set( ‘max_execution_time’, ‘300’ )

Create/Edit an existing PHP.INI file in Root Directory

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:

  • upload_max_filesize = 64M
  • post_max_size = 64M
  • max_execution_time = 300

This method is reported to work for many users, statically. Remember if 64 doesn’t work, then try 20MB (sometimes that works).

  • .htaccess Method

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 to it:

  • php_value upload_max_filesize 64M
  • php_value post_max_size 64M
  • php_value max_execution_time 300
  • php_value max_input_time 300

Now you know how to check your maximum file upload size limit on the WordPress website? with these methods. If you have more questions, you can comment below, or please feel free to contact us. You can also check our portfolio for our recent works too. 

Leave a Reply

Your email address will not be published.

five × 1 =

This site uses Akismet to reduce spam. Learn how your comment data is processed.