How to Check Your Maximum File Upload Size Limit on WordPress Website?

  • Rohan Singh, May 29 ,2019

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.

  • Theme Functions File

 

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:

  • @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 work).

 

  • .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 in 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 WordPress website? with these methods.

Leave a Reply

Your email address will not be published. Required fields are marked *

two × 5 =

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