I am creating a form on Open OnDemand and I want one of the attributes (“source”) to be able to select files available to the server and the user’s machine. I went through this discussion but I’m getting this error when I open the Select File.
Hi and welcome!
We keep forgetting there’s a bug in this library. I can put some time into updating it this week.
Hi, sorry for the issue. This should be fixed now in version 3.0.1
- you can pull the form.js
from here: Release v3.0.1 · OSC/bc_js_filepicker · GitHub
Thanks that works! I was wondering if there is a way to use the widget without downloading the form.js to my app itself (for ex, is the widget importable).
In 3.1 (the next version) there’ll be a path_selector
widget that’ll do this work. That is, we’re building this functionality in the OnDemand itself, but that’s the next version.