Selecting file in browser

Mar 28, 2013 at 6:26 PM
Edited Mar 28, 2013 at 6:28 PM
Hot to select file, when elfinder is openning?
For example in ASP.NET MVC3 project:
<div id="fileManager1"></div>
<input type="text" id="field1" name="img" value="http:localhost:2541/data/Folder1/FileName.jpg" />
<input type="button" id="btn1" value="BROWSE" />
When click "btn1", elfinder opens. But file isn't selected and elfinder is pointed at root dir.
What should to do?
Coordinator
Mar 28, 2013 at 10:39 PM
I think you should check out elFinder docs, forums and javascript sources:
https://github.com/Studio-42/elFinder/blob/2.x/js/elFinder.js
There's exec function that can be called on elFinder js instance - you could try to call something like:
// call open directory
instance.exec('open',directoryHash)
// then maybe try something like
instance.exec('select',fileHash)