How to increase maximum file upload size for WordPress website

max

It may sound familiar to you that when you try to upload a pdf or mp3 file of more than 2MB, your WordPress website won’t allow you to do so.

Usually, most web hosting companies give you the ability to upload max up to 2 MB of files. In this blog, I will show you how you can increase the maximum file upload size for your WordPress website. It can be done in 3 ways.

#1 Create or Edit Your php.ini file

If the php.ini file already exists in the root of your server, you can edit and increase the max upload file size for eg. upload_max_filesize 64M however in most of the shared web hosting plans, you will find that you are not provided with php.ini file. In this case, you will need to create a php.ini file and put the below codes in it:

phpini

#2 .htaccess file

The other way to resolve the issue of “maximum file upload size” is to make changes in the .htaccess file. Open or create the .htaccess file in the root folder and add the following code:

htaccess

#3 Functions.php file

The third way to increase the maximum file upload size in your WordPress website is to make changes in the functions.php file of your theme. You can add the below codes to this file:

functions

I hope you will be able to sort out the problem of increasing the file upload size through any of the methods mentioned above. If you still face any issues, do email me at [email protected] and let me know.