# File Select not working

**URL:** <https://discourse.openondemand.org/t/file-select-not-working/2820>\
**Category:** Get Help\
**Tags:** question\
**Created:** [July 19, 2023, 9:26pm UTC](https://discourse.openondemand.org/t/file-select-not-working/2820 "2023-07-19T21:26:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mekhlakapoor](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/mekhlakapoor/32/1766_2.png) [@mekhlakapoor](https://discourse.openondemand.org/u/mekhlakapoor)\
**Post date:** [July 19, 2023, 9:26pm UTC](https://discourse.openondemand.org/t/file-select-not-working/2820/1 "2023-07-19T21:26:16Z")

</div>

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](https://discourse.openondemand.org/t/form-yml-file-browser-object/427/23) but I’m getting this error when I open the Select File.  
 ![Screen Shot 2023-07-19 at 2.48.29 PM](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/1/11c9cea9ac3335440d17aab07a83859b1eeaf423.png)

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [July 20, 2023, 1:48pm UTC](https://discourse.openondemand.org/t/file-select-not-working/2820/2 "2023-07-20T13:48:14Z")

</div>

Hi and welcome!

We keep forgetting there’s a bug in this library. I can put some time into updating it this week.

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [July 20, 2023, 9:34pm UTC](https://discourse.openondemand.org/t/file-select-not-working/2820/3 "2023-07-20T21:34:16Z")

</div>

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](https://github.com/OSC/bc_js_filepicker/releases/tag/v3.0.1)

---

<div class="post-metadata">

**Author:** ![mekhlakapoor](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/mekhlakapoor/32/1766_2.png) [@mekhlakapoor](https://discourse.openondemand.org/u/mekhlakapoor)\
**Post date:** [July 21, 2023, 12:03am UTC](https://discourse.openondemand.org/t/file-select-not-working/2820/4 "2023-07-21T00:03:17Z")

</div>

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).

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [July 21, 2023, 1:28pm UTC](https://discourse.openondemand.org/t/file-select-not-working/2820/5 "2023-07-21T13:28:10Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/b/bae70bd0ed39a3ae769c2108155f4cb3e9da8385.png) [@system](https://discourse.openondemand.org/u/system)\
**Post date:** [January 17, 2024, 1:28pm UTC](https://discourse.openondemand.org/t/file-select-not-working/2820/6 "2024-01-17T13:28:47Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
