Here is how you change the upload file size in WordPress

wordpressThere you are cruising along writing your new blog article and you need to upload a file. Suddenly you get an error that your file size is over the 2MB limit.

Most of the time 2MB is plenty. And, limiting your website upload limits is good practice in case you get hit by a hacker. However, there are times where you really need to increase the file size limit. The good news is it is easy to do.

I have found various ways to add code to the .htaccess file or in your wp-config, but it doesn’t always work depending upon your server set up. So far, this hasn’t failed me.

  • Go to your wp-admin folder and create a file called “php.ini”
  • Add this code to that file (you can change 32MB to whatever value you want):
memory_limit = 32M
upload_max_filesize = 32M
post_max_size = 32M
file_uploads = On
Posted in

Lena Shore

Lena is a full-time freelancer and nerd that specializes in web development, graphic design, and illustration. She enjoys building things, learning new things, pursuing creative endeavors, and giving free advice.

Archives