Increase max_upload_size in WordPress

Increasing the upload_max_filesize in WordPress

The default upload file size for WordPress is 2 MB, which is a problem if you want to upload a large media files. If you get this error, “The uploaded file exceeds the upload_max_filesize directive in php.ini”, follow these steps:

  1. Locate the php.ini file inside the wp-admin directory (if you can’t find this file see notes below)
  2. Find this line in the php.ini file “upload_max_filesize = 2M” and replace it with a higher value (e.g. “upload_max_filesize = 64M”)
  3. You may also want to increase your max post size. Look for this line in your php.ini file “post_max_size” and increase it as well.
  4. Save the changes to the file inside your wp-admin directory.
  5. Try the upload again
  6. If you still have issues, look for this file in your root directory and make the same changes.

If you don’t have a php.ini file in your directory, you can usually generate one from the control panels of your host.

Once this file is copied into your wp-admin folder, the problem should be solved.

 

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Resetting your password

Resetting your password in WordPress can be accomplished by following these step-by-steps for...

Restoring your database from backup

WordPress database can be restored from backup by following these step-by-step instructions for...

Viewing your WordPress site before DNS resolves

This is a great article that details step-by-step how to view a WordPress site before DNS resolves.

Permalinks do not work - How to fix

Sometimes after a WordPress migration to a different host server is performed, the Permalinks...

WordPress Export Tool

This is a link to a very easy to complete way that you can export your WordPress sites...