Adding images on your website not only makes it more attractive, but it also helps in improving your site’s SEO as well. So, we know how frustrating it feels when you encounter image upload problems while creating your site.
We know that there are also instances when you are able to upload images on your WordPress – but then, these appear as broken images. In this post, we’ll address both image upload issues so that you can fix up your website.
Common Cause of Image Upload Issues in WordPress
Here’s the most common cause of image upload problems: wrong file permissions. You see, your site’s upload directory should always have the correct permissions. If not, WordPress won’t store the images on their data bank. And if they are able to do so, the images will appear as broken.
Reasons for Having Incorrect File Permissions
If you’re sure that you have the right file permissions, we suggest checking on them again. Here are some of the most common reasons as to why your file permissions might change without your knowledge or consent:
- A hacker caused it. Well, you know how hackers are these days. Sometimes, their work affects other WordPress users even if they are not particularly targeted by the attack.
- Your hosting provider ran a system update. An update or upgrade can automatically change your settings without intending to. Most of the time, it affects other users as well.
- Shared hosting weakness – While it’s OK to have a shared hosting account for your site, there are some risks involved in such a setting. You see, if your hosting provider runs on a poorly configured system, one user’s actions can affect the account of everyone. Therefore, if one user (in a shared hosting) installs a program (e.g. plugin, theme, etc.) from an unreliable source, this could mess up the settings of other users (such as you).
How to Fix Image Upload Problems
Here are the steps to fixing image upload issues:
- Connect to your website. You can use an FTP client like FileZilla to connect (other FTP clients will do).
- Look for the /wp-content/directory. You’ll find the /uploads/ file there.
- Right click on the /uploads/ file and choose file permissions among the options.
- Now, wait for a new file permission dialogue box to appear.
- Key in the numbers 744 in the designated box.
- Find the option Recurse into Subdirectories and select the box next to it (this will put a check mark inside the box).
- Click on the option that says Apply to Directories Only.
- Finally, click OK to save all the changes that you’ve made.
After doing all the steps above, your FTP client will apply all the permissions that you modified to the directories. Note, however, that the numbers in step #5 don’t always work – and if that’s the case, use 755 instead. Moreover, you need to perform the next steps to modify the permissions for all the files in the directory.
- Go to the /uploads directory and click File Permissions.
- When the File Permissions dialogue box appears, change the numbers to 644.
- Click on the Recurse into Subdirectories box to mark it with a check.
- Finally, click on the Apply to Files only.
- Click the OK button to save everything you’ve done.
With those final steps, your FTP client will change the old file permissions to the new ones. These changes will be applied to all the files in the directory.
Finding the Solution to Image Upload Issues
The above methods and steps will help you solve most image upload issues. Do let us know if they worked as we are always happy to hear from our readers. If you want to tell us something, the comment box is found just below this post.