How can I get an "open file dialogue" box in JavaScript?
Asked
Active
Viewed 4,575 times
-1
-
More context required, OS? Javascript host? – AnthonyWJones Jan 13 '09 at 11:17
-
Sorry ya i am using Asp.net in that iam generating file upload control dynamically. when i am using Mozilla iam not getting Full file path :) – Kishh Jan 13 '09 at 11:36
2 Answers
0
Short answer is that no, you cannot do this through pure Javascript; the only way to do this is via an HTML form with an <input type="file">
element.
![](../../users/profiles/1783163.webp)
peterh
- 9,698
- 15
- 68
- 87
![](../../users/profiles/45664.webp)
Andrzej Doyle
- 97,637
- 30
- 185
- 225