This code works on Firefox, but does not work on Mac/iOS Safari. Is there a way to make it work?
$(function(){
setTimeout(function(){ $("input[name='upload']").trigger('click'); },1000);
});
This code works on Firefox, but does not work on Mac/iOS Safari. Is there a way to make it work?
$(function(){
setTimeout(function(){ $("input[name='upload']").trigger('click'); },1000);
});
Apparently that's prohibited. probably in terms of security. https://mariusschulz.com/blog/programmatically-opening-a-file-dialog-with-javascript