Do you want to increase WordPress maximum upload file size.
WorPress has default limit range of 2MB to 100MB for file uploading. This is to stop the unwanted users from uploading big files and eating up the space.
If you try to upload a large file, you may crash into this message:
File exceeds the maximum upload size for this site.
The file could be an image, theme, plugin, video, pdf, presentation, vector or any file…
But you don’t need to worry at all.
In this post, I am going to mention best methods to increase the upload limit of WordPress.
How to Increase WordPress Maximum Upload Size?
There are many ways to increase the maximum upload size on wordpress. You can do it from backend, that is by editing the .htacces, php.ini or wp-config files. It can be done with the help of a plugin. At the end, you can contact hosting, and ask them to increase the uploading file size.
- .htaccess Method
- Plugin Method
- Plugin – 2 Method
- Php.ini method
- Wp-config Method
- Functions.php Method
- Contact Hosting
#1 .htaccess
The first and simplest method is the .htaccess method.
Add this line of code in your .htaccess file.
php_value upload_max_filesize 64M php_value post_max_size 128M php_value max_execution_time 300 php_value max_input_time 300
These simple lines of code would increase the limit of media uploading on your site. You can set the number as you want.
Note: It may not work if you are on shared hosting. As the hosting providers do not want any single user to upload big files, and hog up all the space.
In that case, you contact your hosting service.
Where is the .htaccess file?
.htacees file is accessible from the file manager of the c-panel.
After doing the Login to c-panel, find the File Manager.

You can find .htaccess file present in public/html folder.
In case you are not able to find it, go to setting, and click on the ‘show all hidden files’.

There is no need of worrying if this method does not work. There are more methods to change the limits of Media Uploads.
#2 Plugin for .htaccess
The best part of WordPress is that there are Plugins are available for all kind of functions.
Be it login security or displaying testimonials.
There are also several WordPress plugins for enabling the editing of .htaccess from the Admin Dashboard.
Therefore, install any popular .htaccess editor plugin from the repository.

They will let you add the code to htaccess files. You can increase the WordPress maximum upload size from the dashboard area.
Code:
php_value upload_max_filesize 64M php_value post_max_size 128M php_value max_execution_time 300 php_value max_input_time 300
#3 WordPress Maximum Upload File Size PluginÂ
There are plugins especially for Increasing the Maximum Upload file size for WordPress.

Go to the setting of the plugin after the login.
You can set the limit as you like from there.
These plugins add the code to the PHP files by your permission. You can do it manually too.
#4 Php.ini
Php.ini files can execute the command for any app that runs on PHP. As we know, WordPress is a CMS built on PHP.
Locate the php.ini file in your WordPress folder. WordPress folder is accessible by c-panel.
Go to File Manager > Find the php.ini file > Edit > Paste the Code > Save.
If you can’t find php.ini file, create a new one.
Open any Text Editor > Paste the code > Save the file as php.ini > Upload it to the WordPress Folder.
The code is:
upload_max_filesize = 128M post_max_size = 128M max_execution_time = 300
Change the sizes as per your need.
After doing this check your Add Media Section to see if the size limit has increased.
#5 Wp-config
There is another method for increasing the upload size limit on WordPress via c-panel.
Go to the File Manager.
Locate the wp-config file in the public_html folder.

Edit it, and paste the code.
@ini_set( ‘upload_max_size’ , ‘120M’ ); @ini_set( ‘post_max_size’, ‘113M’); @ini_set( ‘memory_limit’, ‘115M’ );
Reload after saving the changes in the file.
This will increase the WordPress maximum upload file size for all the media.
#6 Functions.php
I do not suggest this method. However it is a method to increase the maximum upload media size, so I should mention it.
But go on your own risk. Don’t forget to take WordPress backups before playing with the Theme Editors.
Theme Editor allows you to edit codes from the front-end of your site.
If you are not able to access c-panel or do not want to interfere with .htaccess file in any way. You can customize media upload limits from the Theme Editor too.

#7 Hosting Company
Are you using a high-quality Hosting?
If yes !!
You can contact them to increase the limit.
The WordPress maximum upload file size is set by the hosting provider. Limit depends on your package and the hosting provider.
At ServerGuy.com, the maximum upload limit for the media files is 256 MB. We also increase the maximum upload size for the customers who ask for it.
You can call our 24/7 ready technical team, and they will resolve the issue with terrific pace.

Final Words
WordPress is a fantastic CMS with so much functionality. You can do a lot with it. For every function, to solve any issue, WP has many ways to offer.
I hope you can upload the large size media file you want to upload on your WordPress site.
Is there any popular method that I missed? Can you do it by any other way!!
Share with me in the comments.