Increasing File Upload Size in WordPress

Sometimes a theme, plug-in, or other file needed for WordPress may require you to change the maximum file upload size. Why? There is a good built-in layer of protection for your server that maximizes file upload size. This prevents a user on your WP site to be able to upload large images that will quickly use up your storage space and increase database size. Here’s how you can do it.

First, decide on how you will edit your WordPress files. You can use a text editor (such as BBedit or Sublime) and FTP, or File Manager in cPanel.

Second, locate your files. They should all be found in the root “public_html” folder on your server.

Third. Be sure to always make a backup of each file before modifying.

Forth. Edit the files. Try increasing your size in each one of the following files until the upload finally works for you. Change the number following the = to whatever you want. In this case, it is 250MB. The default is 5MB.

upload_max_filesize = 250M

@ini_set(‘upload_max_size’ , ‘250M’ );

php_value upload_max_filesize 250M

Good luck with your project!

Comments are closed.