+92 308 5039935
Get a Free Quote
+92 308 5039935

How to Increase the Maximum File Upload Size in WordPress

How to Increase the Maximum File Upload Size in WordPress

There comes a time when you need to upload a larger size file but the default file upload size limit is low as 2mb. You can increase WordPress file upload size limit either by your self or contact your hosting provider to do it for you. Following are few methods on how to do it.

cPanel (Recommended):

This is the best and easiest way. Login to your cPanel, scroll down and click Select PHP Version then select Switch to PHP options. Now scroll down and find post_max_size, upload_max_filesize and max_execution_time then change the value to your desired one.

Edit php.ini file:

If you have access to your php.ini file, search for post_max_size, upload_max_filesize and change it to 64M or the value you need. Then search for max_execution_time and change the value to 300.

Create php.ini file:

If you don’t have access to php.ini file then create a new text file and write the following values in it, save it and change the file name and extension to php.ini then upload it to your WordPress root or wp-admin folder. Check whichever works for you.

Edit .htaccess file:

You can also increase the upload file size limit by adding following code into your .htaccess file

Contact Your Hosting Provider:

If you don’t feel comfortable trying the above methods, or the any of the above methods did not work for you, then you need to contact your hosting and ask them to increase your upload file size limit.

Hello, I am a web designer and developer working since 2013. I build WordPress themes, write and extend WordPress plugins, edit WordPress themes and plugins in accordance to customer needs and play games when free ;-)
Related Post
WordPress Minify CSS
How to minify inline CSS in WordPress Theme or Plugin

Minification is used to reduce the size of stylesheets or CSS by removing unnecessary unnecessary characters from code without changing the way that code works. There are a lot of PHP scripts to minify CSS in WordPress but we are going to use a simple function  here. I use this function for inline CSS in […]

Read more
wpbakery page builder
How to add inline CSS in WPBakery Page Builder Element

WPBakery Page Builder (Formerly Visual Composer) is one of the best drag and drop front-end/back-end builder. You can easily apply inline css using style attribute but what if you need to apply css to a pseudo elements?

Read more
How to Auto Load Files in WordPress?

You may need to auto load files in WordPress themes or plugins. But I wouldn’t recommend it if you are creating theme to sell on themeforest. They didn’t accepted themes with this auto load function few years ago when we used

Read more
Post has 1 comment
  • Anton Lampiasi Posted April 1, 2020 in 11:23 pm Reply

    I have long looked for How to Increase the Maximum File Upload Size in WordPress article, it is the BEST content, full of ideas and very useful!!

Leave a Reply

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