fixes #3083 Image Upload Not Working on IE9 and IE10

Fixed and pushed the code for review, please check it.