How to fix the Image Upload Error in WordPress

By November 8, 2018 July 15th, 2019 WordPress

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:

  1. 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.
  2. 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.
  3. 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).

FTP Client for WordPress FileZilla

How to Fix Image Upload Problems

Here are the steps to fixing image upload issues:

  1. Connect to your website. You can use an FTP client like FileZilla to connect (other FTP clients will do).
  2. Look for the /wp-content/directory. You’ll find the /uploads/ file there.
  3. Right click on the /uploads/ file and choose file permissions among the options.
  4. Now, wait for a new file permission dialogue box to appear.
  5. Key in the numbers 744 in the designated box.
  6. Find the option Recurse into Subdirectories and select the box next to it (this will put a check mark inside the box).
  7. Click on the option that says Apply to Directories Only.
  8. 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.

  1. Go to the /uploads directory and click File Permissions.
  2. When the File Permissions dialogue box appears, change the numbers to 644.
  3. Click on the Recurse into Subdirectories box to mark it with a check.
  4. Finally, click on the Apply to Files only.
  5. 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.