It's a weird issue and I don't have any clue how to fix it. When I am trying to upload an image, I am shown an error message saying "an error occurred in the upload. Please have a look at the screenshots. I have inserted dialogue boxes so that you get better understanding of the issue.
There are two different screenshots. Please go through them and guide me.
PS: I have tried deactivating all the plugins but it did not work.