Do you want to increase maximum upload file size in WordPress?
When you upload a big file size via media uploader, then this problem is often encountered, and the file is not uploaded. In this article, I’ll tell you how to increase the maximum file upload size in your WordPress site.
How to Check Maximum Upload File 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 methods to increase upload size limit.
So, let’s get started…
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.
Find this article helpful? Don’t forget to share!
You may also like: