I need a dojo form control which enables user to browse hard disk and point to file. I dont need to upload that file. JUst a file browser control. I have tried to google it but am unable to find a usable one.
I need a textbox and and a browse button, I want open file dialog to open when I hit browse. User selects the file and full path comes in the text box. I need the the content of textbox as data and not the file itself.
I’ve not seen anybody do this before.
You could put a plain
<input type="file">into your HTML, inside a form you never submit, and listen for thevalueof the input element changing.But I don’t think you’ll get the full path (at least not in all browsers).
e.g. http://jsfiddle.net/RoystonS/LfMwD/