Do you want to increase the maximum file upload size in WordPress?
Today I will show you a simple and easy way to increase maximum file upload size in WordPress. Sometimes it limits you to upload bigger files on your WordPress website or you may get an error like”The uploaded file exceeds the upload_max_filesize directive in php.ini.”
1. Installing Tuxedo File Plugin
If you want to add high-quality and Big Files Images then I would recommend adding a Third part plugin. But if you are trying to add a plugin that is more then allowed maximum file size then try the methods that are given below.
To Upload Big Files like images and Videos.
Go to plugin>add new> search for>Tuxedo File>activate:
Now you can upload big files to your plugins.
2. Theme Functions File
You can increase your maximum file upload size by just adding the following code in the theme’s functions.php file.
3. Create or Edit an existing PHP.INI file
For this purpose you have to open your website root directory if you have shared hosting then you will not see the php.ini edit folder in your directory.
In some cases, it does not work for 64MB but if you try a minimum of 10MB then it will definitely work for you.
Create new php.ini files and upload them to the root folder.
1.upload_max_filesize = 64M
2.post_max_size = 64M
3.max_execution_time = 300
4. htaccess Method
These all techniques will not be working for you if you are using shared hosting plans. You may break your site if you are going to change anything in your shared hosting directory.
These methods are only recommended and reported working for dedicated servers.
Sometimes you have to contact your web hosting provider to increase the Maximum File Upload Size in WordPress.
By the Way, Edit the .htaccess file in your WordPress site’s root folder and add the following code:
1.php_value upload_max_filesize 64M
2.php_value post_max_size 64M
3.php_value max_execution_time 300
4.php_value max_input_time 300
I hope this article will help you to increase the Maximum File Upload Size in WordPress