Make file upload work in old Safari and Internet Explorer

Safari 5 and IE9/10 only seem to trigger the upload dialog if the input is appended to the page.