How To Increase The File Upload Size Limit In WordPress

How can I increase the file upload size limit. When I upload file via media section, I got error like exceeds the maximum upload size for this site

Depending on the web hosting company you bought and the package you have purchase, each of you will see different maximum file upload limit on your Media section in WordPress. For some it is as low as 2MB which is clearly not enough. So we need to increase the maximum file upload size in WordPress.

There are some ways you can following to increase the maximum file upload size.

1. Via theme function file.

add following lines to functions.php of your active theme

2. Via php.ini file

Creating a new php.ini or editing your existing php.ini file in your root folder. Then add following lines to php.ini

3. Via .htaccess file

Edit or create the .htaccess file in the root folder and add the following lines

0 0 vote
Article Rating
Notify of
Inline Feedbacks
View all comments