WordPress Image Upload 'HTTP Error' or 'Exceeds the Maximum Upload Size'

Share
Workaround available Self-hosted WordPress (WordPress.org) Updated November 13, 2026Based on 4 user reportsHow we research

Quick answer

Upload failures are usually PHP limits. Raise upload_max_filesize, post_max_size and memory_limit, and check disk space and image library problems if it persists.

Most likely fix: Check your current limits

How to fix it

Try these in order — the most common fix is first.

  1. 1. Check your current limits

    1. Tools > Site Health > Info > Media Handling shows the max file size and image library in use.
    Did this fix it?
  2. 2. Raise PHP limits

    1. Set upload_max_filesize and post_max_size (post_max_size at least as large) in your host's PHP settings, or in a .user.ini file in the WordPress root. Many guides suggest 64M as a start, and memory_limit of 256M.
    Did this fix it?
  3. 3. Raise memory and resize images first

    1. Add define('WP_MEMORY_LIMIT', '256M'); to wp-config.php and shrink very large photos before uploading.
    Did this fix it?
  4. 4. Switch image library or check disk

    1. Some users fix the HTTP error by switching from Imagick to GD with a small plugin or by asking the host to fix Imagick. Confirm disk space and that wp-content/uploads is writable.
    Did this fix it?
  5. 5. Rule out plugins

    1. Deactivate plugins and retry the upload, then rename the file to plain letters and numbers.
    Did this fix it?

Symptoms

Uploading to the Media Library fails with 'HTTP error', 'An error occurred in the upload', or 'The uploaded file exceeds the upload_max_filesize directive'.

Why it happens

  • upload_max_filesize or post_max_size too low
  • PHP memory too low for resizing large images
  • Imagick problems on shared hosting
  • Full disk or bad folder permissions on wp-content/uploads
  • A plugin or firewall interfering
  • Special characters in the file name

This guide also covers

  • wordpress http error image upload
  • wordpress exceeds maximum upload size
  • wordpress media upload not working
  • wordpress an error occurred in the upload

Still not working?

If WordPress keeps failing, you're not alone. See every WordPress problem users report or the alternatives people switch to.

Done fighting WordPress? Our small team builds your own WordPress alternative, made for how you work. On your domain or hosted by us. Price agreed together.

Get a quote
Fixed it? Share this guide

Other WordPress errors

All 11 WordPress errors and fixes →