1. Theme Functions File #
by adding the following code in the theme function’s file.
1 2 |
@ini_set( 'upload_max_size' , '64M' ); @ini_set( 'post_max_size', '64M'); |
2. Edit htaccess #
by modifying the .htaccess file in the WordPress root directory where the wp-config.php is located as well.
1 2 |
php_value upload_max_filesize 64M php_value post_max_size 64M |
3. Create or Edit an existing PHP.INI file #
by adding or editing a php.ini file inside your web hosting root directory. If you are not able to see this file, create it manually and place it inside the mentioned folder.
1 2 |
upload_max_filesize = 64M post_max_size = 64M |
If none of these methods are working, please contact your hosting provider for further assistance.