Correct logic for IE8 file upload