How to Increase the Maximum File Upload Size in WordPress?

Last updated on April 13th, 2022 at 09:21 pm

Would you like to improve the utmost file or document upload size on WordPress?
Sometimes, a low document upload size limit may block you from uploading data files through a media uploader or installing themes and plugins.
In this awesome guide, we’ll reveal to you the way to raise the utmost file upload size in  WordPress to Solve all of those issues.
Note # Here really is a secondary level guide. It could well not do the job with a few shared hosting by which the event you may need to consult your web hosting service provider to get service. We utilize Hostinger, and they are far more than valuable when it regards problems in this way.
Must Read: Read our detailed guide on Hostinger Hosting.

Check Your Maximum File Upload Size Limit

WordPress will instantly demonstrate that the utmost file uploads size limit whenever you are uploading media or images. To assess it, you can visit Media in the WordPress dashboard and click on Add New pages, and you also may observe exactly the maximum file upload size limit for your WordPress site.

wordpress upload size

1 # Theme Function File

There are instances where We’ve noticed that by simply incorporating the above code in the theme’s functions.php file so you can raise the upload size:

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

Must Read: Read our detailed guide on SEMrush SEO Tools. 

2 # Make  or Modify an Current PHP.INI document

With this specific process, you have  to find  your WordPress site’s root folder functioning  with this FTP or Document Manager program in  your website hosting account’s cPanel dashboard.

Read Also: Read our detailed guide on How to Insert Tables in WordPress Posts and Pages?.

Generally, in many cases, you are on the shared server, then you definitely are not going to observe a php.ini file on your directory.

If you don’t get this file, then create a document named php.ini and then upload it to the root folder. In That’s the document include the Subsequent code:

upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300

This way is reported to benefit all end users. Remember that if 64 will not do the job, then strive 10MB (sometimes that do the job )

3 #. htaccess Method

Many folks have attempted to employ the .htaccess procedure by altering the .htaccess document in  the root directory to ensure you are able to enhance the upload size in  WordPress. Alter the .htaccess document on your WordPress site’s root folder and then include the above 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

All over again, it is essential that we must highlight that in the event you are on the shared web hosting offer, afterwards, these processes might not work. In that’s situation, you may need to get in touch with your hosting supplier to raise the limit for you.

Read Also: Read our detailed guide on GeneratePress Theme.

Hopefully this article work with you to improve your highest possible document upload size into WordPress.

Leave a comment