After a couple of weeks of research, I realized that I don't get an error when I upload PNG format. The issue occurs when I try to upload JPEG format.Problem solved