Home / Questions / Why does WordPress show an HTTP error when I upload an image?

Why does WordPress show an HTTP error when I upload an image?

The HTTP error when uploading an image is vague. The usual causes are a large file, the Imagick image editor, low PHP memory and file permissions.

The “HTTP error” message during an upload does not say what failed. Work through the likely causes in order.

Steps to try

  1. Shrink the image to under 2 MB and about 2000 pixels wide before you upload.
  2. Switch the image editor from Imagick to GD. A small filter in functions.php does this, or your host can enable the GD library.
  3. Raise the memory limit with WP_MEMORY_LIMIT in wp-config.php.
  4. Check that the wp-content/uploads folder is writable (permissions 755 for folders).

If an upload still fails, deactivate image-related plugins and test again. Our guide on common WordPress errors lists more fixes.

Ready to act on this?

Get a written review of your site, or send us your question and we will reply within 24 hours.

Related services

Not sure where your site stands?

Send us the details and we will reply within 24 hours with a clear next step.