The weirdest issue we ever face is if we find any broken images in WordPress.
What is it?
Basically, whenever we upload any image in WordPress then either it won’t let you upload or if it’s get uploaded then it shows images in the media library as broken.
So, after reading this article, you will be able to fix WordPress image upload error. The most common problem with broken image is wrong file permissions. The file permissions should be correct in uploads directory otherwise your files won’t get store in WordPress. Even sometimes it won’t display files from the upload directory. You will need the FTP client like FileZilla to set the correct file permissions for uploads directory. So, in this way you could resolve image upload issue in WordPress.
The change in file permission may be cause by number of reasons. It may happen due to the upgradation of web hosting provider. Even it can happen while backdoor hack upload by some hacker. If you have configured share hosting poorly then while installing some plugin or theme from an unknown source, the result script will end up by mistake while changing all the file permissions.
You can also ask your hosting provider about abruptly change in file permissions.
Steps to Fix WordPress Broken Image Upload Issues
Connect to your website by using the FTP client and after that go to /wp-content/ directory. At there, you will get /uploads/ folder. Just right click on that directory and select the file permissions.
The dialog box will get open for file permissions. For the very first, what you need to do is to set file permissions for the uploads directories and sub directories to 744. You need to put 744 in the numeric value box and then check box next to the Recurse into subdirectories. After that click on Apply to directories only. Now, click OK button to apply all these changes. The FTP client will get into the state of applying file permissions to the directories.
You can also set directory permission to 755 if directory permission 744 is not able to solve the problem.
Now, just set the file permissions for all the files in the upload directory. So, to perform this as displayed in the above screenshot, right click on the uploads directory and select files permissions. Dialog box changes the numeric value with 644. Check box which is next to the Recurse into subdirectories. At last, click on apply to files. Click ok button to apply all of these changes.
Once you are done with setting of the file permission for all the files, then you can go back to the admin area of WordPress and can try again by uploading images.
I hope with this article, you are able to fix the image upload issue in WordPress.