Do you want to increase maximum upload file size in WordPress? If we want to upload a big file size via media uploader, then this problem is often encountered, and the file is not uploaded. In this article, we will tell you how to increase the maximum file upload size in WordPress.
When we upload a file via default media uploader, WordPress automatically displays the Maximum Upload File Size Limit. To check Maximum Upload File Size Limit, click on Media >> Add New. Here you can see Maximum Upload File Size Limit
How to Increase Maximum Upload File Size in WordPress
To increase the maximum upload file size is not a hard task. You can easily increase it. Just you need to add some code to your WordPress site. Here, we are going to show you 3 method to Increase Maximum File Upload Size in WordPress.
So, let’s start…
1. Theme Functions File
To Increase the Maximum File Upload Size in WordPress, add the below code to the theme function file. This will increase your upload size.
@ini_set( ‘upload_max_size’ , ’64M’ );
@ini_set( ‘post_max_size’, ’64M’);
@ini_set( ‘max_execution_time’, ‘300’ );
2. Create or edit existing php.ini file
To edit php.ini file, search it in your website root folder. If this is not in your root folder, then create a new php.ini file and upload it to the root folder. After this add the code to your php.ini.
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300
If 64mb does not work then try 10mb or other values.
3. htaccess Method
You can also use htaccess to increase Maximum Upload File Size. Find and edit the htaccess file in the root 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
If these methods do not work with your hosting package, then contact with web hosting provider to increase your WordPress upload file size.
Also check out
- How to Setup CloudFlare Flexible SSL for WordPress
- How to Change WordPress Login Page URL
- 12 Honest Reason Why Blogs Fail in 2018
Like How to Increase to Maximum Upload File Size in WordPress? Don’t forget to share it!