Diagnosing PHP Upload Failures and Size Limits Print

  • limits, php, troubleshooting, uploads
  • 0

PHP uploads are constrained by several settings. The effective upload limit can be lower than expected if one related setting is smaller.

  • upload_max_filesize limits an individual uploaded file.
  • post_max_size limits the total POST request and must be larger than upload_max_filesize for large uploads.
  • memory_limit can also affect applications that process uploaded data in memory.
  • Application-specific limits can be lower than PHP’s limits.
  1. Check the active PHP version for the domain.
  2. Review the effective PHP settings in MultiPHP INI Editor or the application’s Site Health/system-information page.
  3. Increase only the setting that is actually limiting the operation and remain within any server-enforced maximum.
  4. Retry with a smaller file to confirm the diagnosis.

A server-enforced maximum cannot necessarily be overridden from an account-level INI file.


Was this answer helpful?

« Back