My WordPress Blog Works, but I Cannot Upload Images
While working on your site, you suddenly got an error:
This article discusses the common causes of this error and the recommended solutions.
What are the common causes?
- Incorrect pathways of the WordPress files ⤵
- Incorrect folder or directory permissions ⤵
- Incorrect internal file or folder permissions ⤵
We have also listed our support articles to guide you with your WordPress journey. Please see the Related Articles section below ⤵.
Recommended solutions
Incorrect pathways of the WordPress files
- Log in to your WordPress Dashboard.
- Click on Settings from the left menu, then select Media.
- In the Media Settings page, look for the Store uploads in this folder field.
- Make sure the path should displays wp-content/uploads (remove "/" before "wp-content"). If not, correct the path.
If the Store uploads in this folder field is not found on the Media Settings page, follow these steps.
- Log in to cPanel or connect to your FTP.
- Look for the Files section and click the File Manager icon.
- Click your WordPress site's document root or folder.
- Look for the wp-content folder. Make sure that the uploads folder exists inside wp-content. Remember that the uploaded files go inside the file path wp-content/uploads.
Incorrect folder or directory permissions
If the pathway for the wp-content/uploads folder is correct, but you still cannot upload your media files, there may be incorrect permissions afoot.
To fix your folder or directory permissions:
- Log in to cPanel or connect to your FTP.
- Look for the Files section and click the File Manager icon.
- Click your WordPress site's document root or folder.
- Look for the wp-content folder.
- Check the wp-content folder's Permissions column on the far right and ensure it is showing as 755.
- If it's not showing as 755, double-click the set of numbers under the Permissions column. Make changes on the permission and hit Save.
Incorrect internal file or folder permissions
If the issue persists beyond having updated the wp-content folder pathway or folder's permissions, consider the possibility that the culprit is the permissions of the internal file(s) or folder(s).
- Navigate inside the folder or directory and ensure that the hidden files are shown.
- Click on the Settings button in the top-right corner.
- Put a checkmark on Show Hidden Files (dotfiles) and click Save.
- Check that each internal file and folder's permissions are set as follows:
- WordPress files have 644 permissions.
- WordPress folders have 755 permissions.
- If the file or folder is not showing the correct permissions, double-click the set of numbers under the Permissions column. Make changes on the permission and hit Save.
Related Articles
- How to Change Permissions (chmod) of a File - There are many ways to change file or folder permissions. This article will discuss these methods.
- How to Navigate Through File Manager - If you need assistance with your File Manager, here is your support article.
- WordPress Home Fix - Visit this article if your WordPress website is not showing the correct URL or your WordPress links are redirecting to your homepage.
- What is WordPress? - This article discusses what WordPress is and provides you with go-to articles about WordPress.