How do I increase the WordPress upload size limit? Print

  • 0

If "file exceeds the maximum upload size" appears, raise the limit in cPanel's PHP settings.

  1. In cPanel open Select PHP Version (or MultiPHP INI Editor), then Options.
  2. Increase upload_max_filesize and post_max_size (e.g. to 128M); keep post_max_size equal to or larger than upload_max_filesize.
  3. Raise memory_limit and max_execution_time too for large files.
  4. Save and re-test the upload.

Alternatively, add these lines to a php.ini or .user.ini file in your WordPress root, or add @ini_set('upload_max_filesize','128M'); to wp-config.php. The cPanel method is cleanest. If the option is locked on your plan, open a ticket and we'll adjust it.


Was this answer helpful?

« Back