If WordPress media uploads fail after a migration, start with a small JPEG in Media → Add New Media File. If even that fails, check whether WordPress is writing to the right folder on the new host and whether PHP can write there. If small files work but larger ones fail, check the new server’s upload limits. If the file arrives but its preview is missing, check thumbnail generation and delivery before changing permissions. A working homepage proves the site can serve a page. It does not prove the site can write a file.
Run one upload test and see how far it gets
- Sign in to the WordPress dashboard for the site you intend to test. If DNS is still changing, use your host’s recommended preview method or ask the host to confirm that your request reaches the new server. The domain in the address bar alone won’t tell you which server answered.
- Upload a known-good JPEG under 200 KB with a simple, unique name such as
migration-upload-check.jpg. Use the Media screen rather than a page builder so you can test the standard WordPress uploader first. - Note the exact error and the time of the attempt, including your time zone. Refresh the Media Library: a failed-looking request can still leave an attachment behind. If an item appears, open its details, copy the file URL and open it in a new tab. Check the direct image and the library preview separately.
No attachment and no saved file point toward request handling, temporary storage or the write to the destination folder. A saved file with no attachment can mean the request failed after writing the file. An attachment with a working file URL but a broken preview sends you down a different branch: check whether a thumbnail was created and can be served.
Check where WordPress is trying to write
On a standard single-site installation, WordPress normally uploads to wp-content/uploads, with year and month subfolders if that option is enabled in Settings → Media. Custom content directories, multisite and media offload plugins can change where you need to look. Don’t assume the old host’s folder layout matches the new one.
- In the new host’s file manager or over SFTP, locate the installation you’re testing. Look for
wp-admin,wp-includesand, on a standard layout,wp-content. Open the expected uploads directory and look for the test file, including in the current year and month folder if applicable. - If the uploader says it cannot create a directory, compare the path in the message or server log with the actual directory on the new host. A path containing the old server’s account name is a good clue. On a migrated single site, a legacy
upload_pathdatabase option can override the default; a customUPLOADSsetting inwp-config.phpor a plugin can also affect the destination. - If the path is correct, ask the host to verify that the PHP process serving this site can write to the destination or create the next subfolder in its parent. Have them check ownership and group access as well as permission bits. Your file manager may run as a different user, so creating a folder there is not proof that WordPress can do it.
Check configuration before editing it. If you confirm that a stale override is responsible, record its existing value and back up the relevant database or configuration file. Have the host or developer correct that specific setting for the new layout. Don’t run a database-wide path replacement to fix one upload directory, and don’t set the folder to 777. Neither makes PHP write to the right place.

If the path and access check out, ask the host to check disk space, the account’s file-count quota and PHP’s temporary upload directory. “Missing a temporary folder” points to PHP’s upload staging area, not the Media Library. An account can also have free storage in bytes and still be unable to create another file. The storage meter is telling the truth; it just wasn’t asked the right question.
If small uploads work, separate file size from image size
Try a larger JPEG that you’re comfortable putting on the site. On the upload screen, note the displayed maximum upload size, if shown. A clear size-limit error or an HTTP 413 in your browser’s Network panel points toward a request limit. The screen’s advertised maximum may not account for a lower limit at a reverse proxy or web server that rejects the request before WordPress sees it.
Ask the host to check the settings actually applied to this site’s PHP runtime, including upload_max_filesize and post_max_size. The latter needs room for the whole form submission, not just the file. If the site is part of a multisite network, have the network administrator check its upload limits and any site storage quota too. Change only the limit that’s blocking the upload, then retry the same file.
If a high-resolution photo fails but a resized copy succeeds, file size alone doesn’t settle the question. A compressed JPEG can be small on disk but take considerable memory to decode and resize. If the upload got far enough to save the image but WordPress reports a processing failure, ask the host to check PHP logs for memory or timeout errors and confirm that GD or Imagick is available and supports the format. A normal JPEG working while only one format fails is a reason to check format support or file-type restrictions, not to relax upload security.
Follow the evidence when the result is ambiguous
- The file URL still uses the old domain: Check whether this is a newly uploaded item or a migrated attachment. A new item with an old URL points toward current URL configuration, a legacy
upload_url_pathoption on a single site, or media offload settings. If only older images are broken, check whether their files were copied and whether their existing URLs still point to the old host. That is a different problem from accepting new uploads. - The file URL works but a thumbnail fails: Inspect the broken preview’s request in the browser’s Network panel and look for the requested derivative in the uploads folder or configured offload destination. If it is missing, check image processing first. If it exists, check the URL mapping, CDN or access rules. Don’t regenerate the whole library until a new test upload produces a working thumbnail.
- The uploader reports only an HTTP or server error: Capture the failed request’s status and match its timestamp to the new host’s logs. A
403can come from an access rule, firewall or an expired login session; try signing in again once, then ask the host which layer returned it. A500needs the corresponding server or PHP error, not a guess based on the status number.
Verify the fix with the small JPEG and then with the kind of file that originally failed. Confirm that both appear in the Media Library, open at the expected URLs and render in a draft preview. If you delete the test items afterward, first confirm they aren’t used anywhere: permanently deleting a Media Library item can remove its file as well. Keep the original migration backup separate from this cleanup.