How can I get an "open file dialogue" box in JavaScript?
Asked
Active
Viewed 4,586 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.

peterh
- 11,875
- 18
- 85
- 108

Andrzej Doyle
- 102,507
- 33
- 189
- 228