Join our Telegram and Youtube Channels

How to increase maximum file upload size on WordPress

 maximum file upload size on WordPress

Hi dude, Welcome to our Pixabin Blog. let see a Topic "How to increase maximum file upload size on WordPress" in this Article

How to Check maximum File Upload Size on Wordpress

  • Open your wordpress Admin Dashboard
  • Click Media Option and Click Add new option
  • Now see your maximum file upload Size.

How to increase maximum file upload size on WordPress

1) INI Editor Method

Using this method you can definitely increase the maximum upload size of your website.

But not all hosting providers offer this INI Editor in their c-panel. If you have this feature in your c-panel then follow this method to maximize the maximum file upload size of your website. No problem though.

You can take advantage of the other steps below. Now let's see how to increase the max file upload size in this way.

  • Login to the C-panel of the hosing of your WordPress website.
  • Next, type INI Editor in the Search bar in the C-panel.
  • Now, the INI Editor will appear before your eyes. Click on it and go inside.
  • Now, there is a drop-down menu. In it, select the domain name of your website and click on it.
  • The options that now appear include the option for max_file_upload_size. In it, you can increase the size as much as you want.

This way is definitely worthwhile. However, not all hosting providers offer this feature.

2) PHP.ini file method

For this method, you will want to access your Website's Root Folder by using your FTP or File Manager. you can see the file manager on your Website's C-panel. This method has benefited many website owners. but many shared hosting provider does not give this Option.

Copy the script below and paste it into php.ini. If php.ini is not in your file manager you can create a php.ini yourself.

upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300

3) Plugin Method

This way there are many plugins to increase the max_file_upload_size of your WordPress website. Using it can solve the max_file_upload_size issue of your website. But one problem with this is that after removing these types of plugins, the Max file upload size is more likely to return to the old level.

  • Open your Plugin Section and Click "Add New"
  • Now, Search max file upload size on Search bar
  • Download and Activate the Plugin
  • Now you can Change your Maximum File Upload Size

4) Function.php Method

This way you have to add a script to the theme of your WordPress website. This method does not apply to all WordPress websites. This method will only work on a few websites. Let's see how to do this.

  • First, select Appearance in your WordPress admin dashboard and click on Theme Editor.
  • Next, find function.php in the theme editor and open it.
  • Save the theme by pasting the script below at the end of Function.php.
@ini_set( 'upload_max_size' , '64M' );
@ini_set( 'post_max_size', '64M');
@ini_set( 'max_execution_time', '300' );
  • Save the Theme

5) htaccess Method

  • go to your file manager and open your website's root folder
  • find htaccess folder on your root folder
  • open the htaccess folder
  • next, copy the below script and paste your htaccess folder
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300
  • Do not forget to save the changes
You may also Like

Post a Comment