Having trouble uploading an image? Try with a different, smaller-sized file. If that didn’t work, then you should probably Google the issue some more. If uploading another image works, then there’s likely something wrong with your file name.
The solution is to rename the file you are trying to upload, removing characters like apostrophes.
In my case, the file I was trying to upload was called “WordPress redirect to xampp’s dashboard except homepage.png”.
Once I renamed it to “wordpress redirect to xampps dashboard except homepage.png”, it uploaded right away.