If you want to increase WordPress maximum upload file size, you are at the right place.

WordPress is an excellent CMS with a smooth learning curve. It is an open-source software. There are several errors and issues.

But a large WordPress community is present who is ready to resolve anything.

 

Web Hosting providers play an essential role in the maintenance of the WordPress site.

You must look for a web hosting for WordPress that provides secure servers, performance and excellent customer support.

You may crash into this message while uploading big size files, :

File exceeds the maximum upload size for this site.

Your site has a set limit for WordPress maximum upload file size. 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 WordPress maximum upload size.

You can do it by:

.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.

File Manager WordPress Maximum Upload File Size
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’.

Increase WordPress Maximum Upload File Size with htaccess

There is no need of worrying if this method does not work. There are more methods to change the limits of Media Uploads.

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.

htaccess file plugins

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


Maximum Upload File Size Plugin 

There are plugins especially for Increasing the Maximum Upload size for WordPress.

WordPress Maximum Upload File Size Plugins

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.

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.

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.

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 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.

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.

Was this post helpful?

Share This