VPS Tutorials
WordPress image upload failed? Fix HTTP errors and size limits (2026)
Fix WordPress image upload errors with a small JPG test, upload-limit checks, storage and permissions checks, and a clear report for hosting support.

If WordPress will not upload an image, start with one small JPG and the exact error message. That separates a file-specific problem from a failure affecting every upload without changing several server settings at once.
This guide is for self-hosted WordPress on a VPS or web hosting account. WordPress.com customers should use the controls and support available with their hosting plan. Menu labels vary by version.
- Keep the original. Export a separate JPG around 1600 pixels on its longest side and, if practical, below 500 KB. These are suggested test dimensions, not WordPress limits.
- Name it
upload-test.jpg. Export it from an image editor; changing the extension alone does not convert a file. - Open Media → Add New Media File and upload only that image, outside the post editor.
- After an error, refresh the Media Library to see whether the image already exists before trying again.
A successful small image narrows the investigation toward the original file, its size or its processing requirements. It does not prove which setting caused the failure.
| What you see | First thing to check | First action |
|---|---|---|
Maximum upload size or upload_max_filesize warning | File and request limits | Read the maximum shown on the upload screen |
| HTTP error or server cannot process the image | Request failure or image processing | Try the small JPG and check the library |
| Cannot create a directory or move into uploads | Space, ownership and write access | Check hosting storage and Site Health |
| One format fails | Actual format and server support | Export a fresh JPG or PNG |
| 403, 413 or 500 | Blocking, request size or server error | Record the full message and timestamp |
The official Media upload guide explains where WordPress displays the host's maximum. If it shows 2 MB and your photo is 6 MB, first test a compressed copy.
When larger files are necessary, find PHP settings for the correct website in your hosting panel. Record the existing values. For an actual requirement to accept files up to 16 MB, ask your host whether these example values are appropriate:
upload_max_filesize: 16M for an individual file.post_max_size: 24M to leave room for the whole submission.
The PHP manual requires the second value to exceed the first. Apply changes as your panel directs, then check WordPress again. Do not edit a different PHP installation just because it has a similar name.
WordPress's base calculation uses the smaller of these two limits; additional restrictions can still apply. A plugin cannot remove a server or proxy limit merely by displaying a larger number.
For an actual 413 response, follow the separate Nginx, PHP and Cloudflare upload-limit guide.
A modest file size can still contain a large number of pixels. WordPress performs image processing and creates smaller sizes after upload. Saving the original does not establish that every thumbnail completed.
Export a copy with a longest side around 1600–2000 pixels and try again. Tell support whether the resized version of the same image worked. Keep the original untouched.
Under Tools → Site Health → Info, inspect Media Handling, Server and Filesystem Permissions. The official Site Health guide describes these fields. Send support the relevant settings privately rather than publishing the entire report.
Check storage usage and account quotas in the hosting panel. If it reports a file-count limit, include that in your support request as well.
For a message naming wp-content/uploads, ask the host to verify that the PHP runtime account can write there. Ownership matters alongside the permission numbers. The WordPress permissions handbook explains that relationship. Do not recursively apply 777 or remove the uploads directory to test a theory.
Start with recently changed image optimization, conversion, security or media offload plugins. Prefer a staging site. If testing on the live site is necessary, confirm a restorable backup, record settings and briefly test one suspect plugin during a quiet period before restoring it.
Read offload-plugin instructions first: deactivation can affect existing image delivery. Contact its maintainer instead if that behavior is unclear. A successful test identifies a useful lead, not permission to leave protections disabled. For a 403, ask support to match the timestamp to the blocking rule.
Open attachment details, copy the image URL and test it in a new tab. Distinguish an accessible original from a broken original. Ask maintenance to inspect processing errors before regenerating sizes for affected attachments. Avoid repeatedly uploading the same large photo or rebuilding every image immediately.
If the entire dashboard is sluggish, see WordPress resource and performance troubleshooting.
- Timestamp and time zone.
- Exact WordPress error message.
- Original format, bytes and pixel dimensions.
- Whether the JPG below 500 KB succeeds.
- Whether the attachment exists and its original URL opens.
- Recent plugin, migration or PHP changes.
- A request to check matching upload logs, PHP limits, processing errors, storage and uploads write access.
Keep passwords and full configuration files out of public tickets. If you cannot sign in, first use the WordPress password recovery guide.
Repeat the small-image test and the previously failing image. Check the library, original URL and an article preview. If only the compressed copy works, record that limitation. Restore temporary plugin or security changes, note the final configuration, and remove only test attachments you have confirmed are unused.