Note:
The answers & comments below reflect the state of legacy browsers in 2009. Now you can actually set the value of the file input element dynamically/programatically using JavaScript in 2017.
See the answer in this question for details as well as a demo:
How to set file input value programatically (i.e.: when drag-dropping files)?
I'm currently working on programmatically filling an HTML/CSS/jquery form on another website using JavaScript. I'm able to fill all textboxs and click necessary buttons easily,but I'm stuck trying to set the value of the file chooser. I'm aware JavaScript doesn't have permissions to set the value of a file chooser, and it appears I can't control the dialog that appears when the button is pressed.
Is there some other way I can automate this? Or is there a solution in JavaScript?
Thanks!