$(\'#id\').click();
It doesn\'t work on Chrome 26 on Mac OS.
The problem actually is creation "upload" widget that can be integrated in
I would create a button and an invisible input like so:
Open
and add some jQuery to trigger it:
$('#button').on('click', function() { $('#file-input').trigger('click'); });
Same idea, without jQuery (credits to @Pascale):