Translate this page

Increase Maximum File Upload Size Limit in WordPress

How to upload large size files in WordPress

By default, the file upload size limit of this WordPress powered site was 2 MB, That is very low in this technology powered world. a good quality image file size will be a lot more than 2 MB. not to mention a video file, they size 100s of Mega Bites if not GBs. video files are today widely used in most tutorial sites to help the knowledge seekers to understand things better. though this site hosts most videos on YouTube, many sites upload the video to their own site storage.

I think the upload limit is set by the hosting company or the default file upload size limit has been set by WordPress software itself. it doesn’t matter, we are going to learn how to increase the upload size limit today. it is not difficult, just some knob turning in the cPanel of your website.

So let,s start

This method was tested in this Website hosted in Godaddy. the settings could be different with your hosting provider.

Log in to cPanel and go down to the page until you see the “Select PHP Version” then click on it, This can be a different name in different cPanel versions or accounts.

In the next page, select “Switch To PHP Options“. it is marked in the screenshot in orange color.

Now in the new page you can see a list of options. we need change some of the options. the options that you need change is marked in orange.

Change these :

  • post_max_size 128M. (here i chose 128 MB) you can select a different value and click Apply
  • upload_max_filesize 512 MB, i chose 512 MB (This selection is probably not necessary but i chose it just in case), Apply

Click the save button to save your changes.

Open your upload media page, you can see your new Upload file size limit!

That is it. kinda simple is not it?

Related Posts

black screen with code

HTML Redirect to Other Web Page Automatically

How to redirect to another web page with html code Redirecting a page to another page is simple, you can use the below code to do that,…

black screen with code

PHP Array to JavaScript Array

How to convert PHP array to JavaScript array The code below can convert your php array to JavaScript array

silver imac displaying collage photos

Fix PHP Unable to find the wrapper “https” – did you forget to enable it when you configured PHP?

Here is how to fix Unable to find the wrapper “https” problem in PHP In php development, you will encounter this error when trying to access an…

6 Web Design Secrets Every Business Owner Should Know

Photo Credit: Tranmautritam via Pexels 6 Web Design Secrets Every Business Owner Should Know According to industry experts, small businesses need to have a website to attract…

PHP: Get Visitors IP and Location and Save to TXT File

How to get visitors IP address and Location and save them to Text file in php This simple php code can be used to save visitors data…

Show Alert when Visitor Leaving a Web Page

Here is how to show an alert message when a visitor leaving a web page With this code, we can show a message or dialogue of your…

Leave a Reply

Your email address will not be published. Required fields are marked *