How can I trigger a select file dialog on iOS 6 for an input element in the DOM programatically? (i.e. using Javascript)
<input type="file" id="foo">
Notes:
- Mobile Safari and Safari seems to behave differently. I've got it working using document.querySelector("input[type=file]").click()in safari.
- If it's within a native clickhandler, i.e. initiated by the user, it seems to work, but I'd like to trigger the dialog on will.
