Don’t be frustrated!! Even yesterday I also got trapped with this issue. While doing the research I tried out multiple methods to resolve WordPress establishing database error and finally solved. I realize to share this with you.
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 director
If you are dealing with a WordPress website, then you have definitely seen this HTTP 500 internal server error several times. This is one of the very common WordPress errors. I agree that this is frustrating one but you need to keep patience.