Errors when uploading files Print

  • upload, php limits, http error, wordpress, max upload size
  • 0

Upload failures, such as "HTTP error", "exceeds the maximum upload size" or timeouts, are nearly always PHP limits or file permissions.

What to check

  • File too large: raise upload_max_filesize and post_max_size (Changing PHP settings such as memory limit and upload size). The defaults are 50M and 55M. Keep post_max_size larger than the upload size.
  • Timeouts: raise max_execution_time (default 90 seconds), or upload big files with File Manager or FTP (Uploading files with File Manager or FTP) instead of a web form.
  • Permission problems: folders 755, files 644. The uploads folder must be writable by your account.
  • Out of space: check disk usage on the cPanel home page.
  • Cloudflare: uploads through the free proxy are limited to 100 MB.

In WordPress a generic "HTTP error" on images is often a memory limit. Raise memory_limit to 256M.

If it doesn't work


Was this answer helpful?

« Back