How to increase maximum file upload size in WordPress Website

How to increase maximum upload size in WordPress Website

Many times when we are working on WordPress we come across a problem or error, whether we are uploading a theme or whether we are uploading a plugin the problem is that maximum upload size is 2 MB and we are trying to install a file more than 2MB now to over come this error this article will help you
Wordpress automatically show the maximum file upload size limit when you are uploading files in it.

5 Best ways to increase the maximum upload size in wordpress

ff-top-arrow

1.
create changes in Theme Functions File

Just add the following code in theme’s 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' );
your maximum uplaod size will increase .

ff-bottom-arrow
ff-top-arrow

2.
Create or Edit an existing PHP.INI file

For this method we need access to cpanel or ftp manager
In most cases if you are on a shared host, you will not be able to see a php.ini file in your directory. If you can’t see one, then just create a file called php.ini and upload it in the root folder.
In that file just add the following code:
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300
Remember if 64 doesn’t work, then try 10MB (sometimes that also work).

ff-bottom-arrow
ff-top-arrow

3.
htaccess Method

Many have also tried the .htaccess method where by modifying the .htaccess file in the root directory, you can increase the maximum upload size in WordPress site . All you have to do Edit the .htaccess file in your WordPress site’s root folder and
add the following code:
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300
your maximum file upload size will increase

ff-bottom-arrow
ff-top-arrow

4.
Plugin

If you don’t want to do it manually, there are plugin for that. You just need to find outthe right plugin that is compatible with your current WordPress version.
IncreaseUploadMaxFilesize is a plugin that might help you.

ff-bottom-arrow
ff-top-arrow

5.
Contact hosting provider

Contact your hosting provider customer care and ask them to increase the upload size for you.

ff-bottom-arrow

Do Read
digital-marketing-important-for-your-business

Sharing is caring!