Can't upload images to posts

I was posting a reply to someone with a screenshot, but I keep getting error messages,

Sorry, there was an error uploading that file. Please try again.

What kind of image file are you trying to upload? I’ve been able to upload jpegs and pngs I think.

PNG files.