Increase WordPress Maximum File Size Upload
Some web hosts add low uploads limits creating issues installing themes, and plugins, see how to Increase WordPress Maximum File Size Upload
Some web hosting companies add low size limits on PHP to file uploads on your website, creating a upload_max_size issue while themes, plugins, and big images or videos are uploaded. See how to change and Increase WordPress Maximum File Size Upload.
Depending on the web hosting company and the package you select, you will see the maximum file upload limit on your Media Uploader page in WordPress. For some, it is as low as 2MB, which is not enough for media files like (audio/video). However, most pictures are under 2MB, so it is acceptable for just portraits. This article will show you how to increase WordPress’s maximum file upload size.
Note: This is an intermediate-level tutorial. It may not work with some shared hosts, so you would have to ask your hosting service provider for support. The host support can edit it very quickly too.
How to Increase WordPress Maximum File Size Upload?
You can start trying a WordPress.org free plugin for it before anything. Check this out, please.
If you don’t like the video or need more instructions, continue reading.
1: Theme Functions File
There are cases where we have seen that just by adding the following code in the theme function’s file, you can increase the upload size:
Note: all Visualmodo WordPress themes already have this on this function; however, some hosts block it from theme access to this method would not work in some hosts independently of your theme.
2. Create or Edit an existing PHP.INI file
In most cases, if you are on a shared host, you will not see a php.ini file in your directory. So, If you do not see one, create a file called php.ini and upload it to the root folder. In that file, add the following code:
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300
This method is reported to work for many users. Remember, if 64 doesn’t work. Try 10MB (sometimes that work).
3. htaccess Method To Increase File Size Upload
Some people have tried using the htaccess method. So, where you can increase the maximum upload limits in WordPress by modifying the .htaccess file in the root directory. Open or create the .htaccess file in the root folder and add the following code:
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300
Again, we must emphasize that if you are on a shared hosting package, then these techniques may not work. In that case, you would have to contact your web hosting provider to increase your limit. Unfortunately, some hosts ultimately turn down their users.