What this problem is
WordPress Media Library shows a generic HTTP error when uploading images.
Why it happens
- Low PHP limits (upload_max_filesize, post_max_size, memory)
- Image processing library issues (GD/ImageMagick)
- Permissions problems in
wp-content/uploads - Security/WAF blocking the upload request
Prerequisites
- Hosting panel access and file access
Diagnosis
- Try uploading a smaller JPG to compare.
- Check PHP error log at the time of upload.
- Verify permissions on
wp-content/uploads.
Detailed steps
Step 1) Increase upload and memory limits
Adjust PHP settings in hosting panel as allowed.
Step 2) Disable optimization/security plugins temporarily
Disable plugins that filter uploads or requests and test again.
Step 3) Check server image libraries
Ask hosting to confirm GD or ImageMagick is installed and working.
Step 4) Fix uploads permissions
Typical: uploads folders 755 and files 644, with correct ownership.
Expected results
- Uploads complete and thumbnails generate
What to do if it fails
- Use FTP upload as a temporary workaround and investigate logs for the root cause
Best practices
- Optimize images before upload and keep PHP limits aligned with media needs