#310: JPEG file upload fix for IE8.