Ok so I have an input element of type file and id \"test\"
When I put in the address bar: javascript: document.getElementById(\"test\").click() it brings up the open fil
I had the same problem and managed to solve it(though I am using jQuery). I detailed the technique in another question
Jquery trigger file input
The idea was essentially to focus the file input before triggering the click programatically.