This is a demo (from https://developer.mozilla.org/samples/domref/file-click-demo.html )of calling click() on a form's file picker. Note that the file input element is actually hidden here, so the user doesn't have to see the path to the selected file.

Select some files

No files selected!