// wordpress & cpanel how-tos
Can't upload images in WordPress? How to solve the problem
One of the most common problems in WordPress is an error message when you try to upload an image. It's a real headache for beginners, but you can usually fix it in a few minutes from cPanel, without complicated tools.
"The uploaded file could not be moved to wp-content/uploads"
This is the first error most people see in the WordPress media uploader. WordPress saves every image inside wp-content/uploads, so it needs permission to write to that folder. After a migration, a reinstall or a one-click install through an auto-installer, that permission is sometimes wrong, and WordPress can't move your file into place.
Fix the folder permissions from cPanel (if you don't have cPanel, connect with FTP first, as I explain in how to use FileZilla with WordPress):
- Log in to cPanel and open File Manager.
- Open your site's folder, then
wp-content, thenuploads. - The uploads folder is organized by years and months, like
2026/12. Each month folder needs the right permission, not only the year folder above it. - Select a folder, click Permissions (or right-click and choose Change Permissions), set it to 755 and save.
Go back to WordPress, refresh the page and upload your image again.
A word about 777 permissions
When I first wrote this guide in 2015, many tutorials, mine included, said to set the month folders to 777 when 755 didn't work. Don't leave them that way: 777 lets anyone on the server write to the folder, which is a real security risk. Folders should be 755 and files 644.
If uploads still fail at 755, the problem is usually that the folders belong to the wrong user on the server, which often happens after a migration. You can't fix ownership from File Manager on most shared hosting, so ask your host to "reset the file ownership for my WordPress folder". It's a one-minute job for their support team.
"An error occurred in the upload" or an HTTP error
In this case, the upload runs for a long time, then fails with a vague message like "An error occurred in the upload. Please try again later." or simply "HTTP error". The usual causes are a short PHP execution time limit (often 30 seconds) or an image larger than your server accepts.
First, close the upload window and refresh the page. Then open Media → Library: the image is often uploaded already, and only the uploader didn't see it finish. You can insert it into your post from there.
To stop the error for good, check the maximum file size shown on Media → Add New Media File. If your image is bigger, resize it before uploading (a photo for a blog post rarely needs to be wider than 2,000 pixels). If you need a higher limit, cPanel's MultiPHP INI Editor lets you raise upload_max_filesize, post_max_size and max_execution_time on most hosts.
Uploaded images disappeared from posts
This one is easier. After you change hosts or reinstall WordPress, images can upload fine but show as broken in your posts. Usually the files are missing from the new server, or your posts still point to the old address. I explain both fixes in WordPress images not showing after migration.
Before anything else, clear your caching plugin and your browser cache, or open the page in another browser. Sometimes the browser simply shows an old copy of the error.
If nothing works
If you still can't upload images after all this, contact your host with a screenshot of the error. A good host fixes permissions, ownership and PHP limits quickly. If yours can't, or these errors keep coming back, it's time to move to a better host. You can compare options in my list of the best WordPress hosting for blogs.
FAQ
Why can't I upload images to WordPress?
Usually because WordPress can't write to the wp-content/uploads folder (wrong permissions or ownership), the image is bigger than your upload limit, or PHP times out during the upload. Fix the folder permissions to 755, resize the image or raise the PHP limits.
Should I set my uploads folder to 777?
No. 777 lets anyone on the server write to the folder, which is a security risk. Use 755 for folders and 644 for files, and ask your host to fix the file ownership if uploads still fail.
How do I increase the WordPress upload size limit?
On most cPanel hosts, open MultiPHP INI Editor, pick your domain and raise upload_max_filesize and post_max_size. If you can't change them, ask your host to raise them for you.
SOURCES
Prices and limits change. We note the date we checked each one; confirm on the provider's site before you buy.