[ACCEPTED]-How can I programmatically open the file picker with JavaScript?-google-chrome

Accepted answer
Score: 13

For security reasons you can't trigger the 4 dialog, unless it is as a response to some 3 user triggered event. You could for instance 2 trigger the dialog through a click on some 1 other element:

$(function () {
    $(".someElement").click(function () {

Working example.

Score: 5

As a security measure, you can only open 3 such dialogs on an user input, such as a 2 click event (on whatever element). You cannot 1 open it randomly such as on page load.


More Related questions