X

How to Increase Maximum Upload File Size in WordPress

How to Increase Maximum Upload File Size in WordPress, In this tutorial we are going to learn how to increase maximum file uploading size in WordPress. When you have a WordPress website, you have to upload files every time either video, doc file and images to keep your site active and pretty but at once you realize that something is wrong in file uploading if you are uploading a large file, So you need to know how to increase file uploading size.

For example, if you want to add a video, navigate to Media => Add New and either select the file from your computer or you can just drag and drop it in the box. Here’s a screenshot:

The built-in media section in WordPress makes it easy to upload media files into your posts and make it a powerful platform to stream video and audio.

Let’s Begin with the method that will help you to increase the limit of file uploading to WordPress.

Theme Functions File

One way to increase maximum file upload size in WordPress is to modify the theme functions file. Just add the following code to the theme function’s file and your upload limit will increase.

@ini_set( ‘upload_max_size’ , ’64M’ );
@ini_set( ‘post_max_size’, ’64M’);
@ini_set( ‘max_execution_time’, ‘300’ );

Create or Edit an existing php.ini file

Sometimes the first method to increase maximum file upload size in WordPress may not work. If you are on a shared host, a php.ini file will not be visible in your directory. In that case, you can create a file named php.ini and upload it to the root folder and add the following code.

upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300

This method is found to be effective for many users. If it doesn’t work for you, try reducing the size to a lesser number, like 10 MB.

.htaccess File

If the php.ini solutions worked, the solution to increase maximum file upload size in WordPress may lie in your htaccess file. Before you edit your htaccess file, make sure you have a backup. Changing this can cause an Internal Server Error or a blank white screen, and you can re-upload your original htaccess file to remove it.

php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300

Save this back to your server. Then go to Media => Add New to see if your maximum upload size has taken effect. If there are any problems, upload the backup htaccess file you saved locally.

Changing maximum upload size in cPanel

If your hosting provider is using cPanel and allows changing PHP settings, you can easily increase maximum file upload size

After clicking on PHP version screen move to next step

Click on Switch to PHP

Here you can change the memory_limit, post_max_size, and upload_max_size

Plugin

If you don’t want to do it manually, there is always a plugin on the WordPress. You just need to install and activate. You can find plugIn with name Increase Max Upload Filesizedownload it and install or you can find it on plugin section WordPress.

Result

After following these steps you will find the way to increase file uploading size in WordPress.

You can also check

WordPress Featured Image
5 Essential WordPress Plugins You Should Install
Related Posts in WordPress with YARPP Plugin

I hope this article helped you to know How to Increase Maximum Upload File Size in WordPress. To get the latest news and updates follow us on twitter facebook, subscribe to our YouTube channel.  And If you have any query then please let us know by using the comment form.

Categories: Plugin Wordpress
Jamaley Hussain: Hello, I am Jamaley. I did my graduation from StaffordShire University UK . Fortunately, I find myself quite passionate about Computers and Technology.
Related Post