Do you want to increase the maximum file upload size in WordPress? In this article, we'll be discussing how to increase the maximum file upload size in WordPress. WordPress will automatically show the maximum file upload size limit when you are uploading images or media. Click on Media » Add New page and you will see the maximum file uplaod size limit for your WordPress site.
Increase the maximum file upload size
Method1 : Create or Edit an existing PHP.INI file
The maximum Upload file size is 2 MB. So if you want to upload files more than this, you can open the php.ini file on the Xampp control panel. Click on the Config button next to Apache. Increase upload_max_filesize from 800M to more. Method 2: htaccess Method You can increase the maximum upload size in WordPress. Just 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 500 php_value max_input_time 300
If you are using Shared Hosting, you would have to contact your web hosting provider to increase the limit for you. Method 3: Theme Functions File Add this code in functions.php file under Apperance -> Editor
@ini_set( 'upload_max_size' , '64M' ); @ini_set( 'post_max_size', '64M'); @ini_set( 'max_execution_time', '300' );
If You liked my Article, Then Please Like my Facebook Page for latest WordPress Tutorials and Latest Updates. 🙂