Increase Your WordPress Maximum File Upload Size Limit

Increase Your WordPress File Upload Size Limit

I’m a part-time WordPress developer and use it mostly to develop sites for my clients.  As most of the clients use shared hosting, sometimes I find it difficult to upload/install plugin and themes for the default maximum file upload size limit of the hosting.

Using .htaccess file

The most common solution to this problem is to use a .htaccess file in the root directory and add the following code to it:

This will override the existing values set by the host and you’ll be able to set the value as much as you want. Here, I am increasing the maximum file upload size limit to 32 MB.

Using php.ini file

You can also fix the problem by creating a php.ini file in your directory and add the following code to it:

But some hosting providers might not allow you to override the php.ini settings and .htaccess method can come handy then.

Hope this small piece of information will help you if you face this problem. Feel free to share your method of solving this problem with us.

Author: Muhammad Sumon Molla Selim

Homo sapiens by Born. Coder by Heart. Entrepreneur by Passion. Founder of Kodeeo & Lets Learn Coding. Software Engineer at GG, Bashundhara Group.

One thought on “Increase Your WordPress Maximum File Upload Size Limit”

Leave a Reply