Issues with wordpress Max upload size

Solution:1

Open the php.ini file on your hosting server (Typically located somewhere like: /usr/bin/php5/bin/php.ini in Linux) and adjust the following lines:

; Maximum allowed size for uploaded files.

upload_max_filesize = 536M

; Must be greater than or equal to upload_max_filesize

post_max_size = 536M

Solution:2

 Add Code to Your WordPress Theme functions.php File

This method involves adding code to your functions.php file in your WordPress theme.

If you haven’t done this before, then see our beginner’s guide to pasting snippets from the web into WordPress.

After that, you need to open your functions.php file via FTP or the file manager app in your hosting account dashboard.. To learn more, see our guide on how to use FTP to upload files to WordPress.

Then, add the following code snippet at the bottom of your functions.php file.

1
2
3
@ini_set( 'upload_max_size' , '256M' );
@ini_set( 'post_max_size', '256M');
@ini_set( 'max_execution_time', '300' );

Solution:3

Add Code to Your .htaccess File

Another way to increase the maximum file size is by modifying the .htaccess file. This file controls the high level configuration settings for your website.

To do this, you need to log in to your website server via FTP. If you haven’t done this before, then see our guide on how to use FTP to upload files to WordPress for beginners.

After that, you need to locate your .htaccess file in your website’s root folder.

 

 

If you can’t find your .htaccess file, then it could be hidden by your file manager or FTP client. To learn more, see our guide on why you can’t find .htaccess file on your WordPress site.

Next, you need to add the following code snippet to your .htaccess file.

1
2
3
4
php_value upload_max_filesize 256M
php_value post_max_size 256M
php_value max_execution_time 300
php_value max_input_time 300

To increase your maximum file upload size even more, simply change the ’64M’ to the size you require.

Solution:4

Use a WordPress Plugin to Increase File Upload Size

Another way you can increase the maximum file upload limit is by using the WP Increase Upload Filesize plugin. If you’re not comfortable adding code to WordPress, then this is a good option for you.

First thing you need to do is install and activate the plugin. For more details, see our guide on how to install a WordPress plugin.

Upon activation, navigate to Media » Increase Upload Limit in your WordPress admin panel.

This brings you to a screen where you can select a new file upload size in the ‘Choose Maximum Upload File Size’ drop down.

Then, click the ‘Save Changes’ button.

 

The maximum file upload size will be set by your hosting provider. If you need a file size limit that’s larger than the one listed in the drop down, then you need to contact your hosting provider and ask to increase the limit.