Fix file upload for IE 8 and 9