# Bc\_js\_filepicker error after upgrading to 2.0.9

**URL:** <https://discourse.openondemand.org/t/bc-js-filepicker-error-after-upgrading-to-2-0-9/1544>\
**Category:** Get Help\
**Created:** [June 16, 2021, 6:51pm UTC](https://discourse.openondemand.org/t/bc-js-filepicker-error-after-upgrading-to-2-0-9/1544 "2021-06-16T18:51:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![fangpingmu](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/fangpingmu/32/532_2.png) [@fangpingmu](https://discourse.openondemand.org/u/fangpingmu)\
**Post date:** [June 16, 2021, 6:51pm UTC](https://discourse.openondemand.org/t/bc-js-filepicker-error-after-upgrading-to-2-0-9/1544/1 "2021-06-16T18:51:08Z")

</div>

form.yml

app\_directory:  
data-filepicker: true  
data-target-file-type: ‘dirs’  
help: |  
“The directory where the app is”

> **[OSC/bc\_js\_filepicker](https://github.com/OSC/bc_js_filepicker)**
>
> A file picker for Batch Connect applications. Contribute to OSC/bc\_js\_filepicker development by creating an account on GitHub.

I am using form.js v0.4.7/  
 ![Screen Shot 2021-06-16 at 2.45.58 PM](https://us1.discourse-cdn.com/flex015/uploads/osc/original/1X/9091f94ea3edcd538819e692285bc9b59476f92c.png)

---

<div class="post-metadata">

**Author:** ![mario](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/mario/32/662_2.png) [@mario](https://discourse.openondemand.org/u/mario)\
**Post date:** [June 16, 2021, 7:10pm UTC](https://discourse.openondemand.org/t/bc-js-filepicker-error-after-upgrading-to-2-0-9/1544/2 "2021-06-16T19:10:40Z")

</div>

@fangpingmu

I’m working on a fix and I’ll reply to this ticket shortly when I tag a new release!

---

<div class="post-metadata">

**Author:** ![mario](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/mario/32/662_2.png) [@mario](https://discourse.openondemand.org/u/mario)\
**Post date:** [June 22, 2021, 8:52pm UTC](https://discourse.openondemand.org/t/bc-js-filepicker-error-after-upgrading-to-2-0-9/1544/3 "2021-06-22T20:52:34Z")

</div>

@fangpingmu We tagged the release of v1.0.0 of `bc_js_filepicker` that fixes this bug. Please let me know if you find any other bugs!

> **[Release Version v1.0.0 · OSC/bc\_js\_filepicker](https://github.com/OSC/bc_js_filepicker/releases/tag/v1.0.0)**
>
> Breaking Changes
> 
> Version v1.0.0 uses the new OnDemand Files API instead of the CloudCommander API. To use v1.0.0 and above, your OnDemand installation must be on 2.0 or above.
> 
> Updates
> 
> .vscode/se...

---

<div class="post-metadata">

**Author:** ![fangpingmu](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/fangpingmu/32/532_2.png) [@fangpingmu](https://discourse.openondemand.org/u/fangpingmu)\
**Post date:** [June 23, 2021, 1:50pm UTC](https://discourse.openondemand.org/t/bc-js-filepicker-error-after-upgrading-to-2-0-9/1544/4 "2021-06-23T13:50:51Z")

</div>

Thank you. After I update form.js to v1.0.0, the “Select File” button disappears.

In form.yml:  
app\_directory:  
data-filepicker: true  
data-target-file-type: ‘dirs’  
help: |  
“The directory where the Streamlit app is”

 ![old_formjs](https://us1.discourse-cdn.com/flex015/uploads/osc/original/1X/f02c80c70e0b8da20077d911a27a32007472d9b8.png)

Change to new form.js:  
-rw-r–r-- 1 root root 96030 Jun 22 16:48 form.js  
-rw-r–r-- 1 root root 92913 Jan 4 15:16 form.js\_old

 ![new_formjs](https://us1.discourse-cdn.com/flex015/uploads/osc/original/1X/2033d45fba8bef55cb79dba187b5e9e39a9b294a.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:** [June 23, 2021, 2:12pm UTC](https://discourse.openondemand.org/t/bc-js-filepicker-error-after-upgrading-to-2-0-9/1544/5 "2021-06-23T14:12:30Z")

</div>

Here’s the checksum of the v1.0.0 that works for me. Can you check your browser’s dev tools and console log for any errors that may be occurring? Also please let us know your platform & browser (and version), there could be some compatibility issue.

```auto
[johrstrom codeserver(mine)] 🐥 md5sum form.js 
f05e0d9cf581097487c07dce5158e89d form.js

```

---

<div class="post-metadata">

**Author:** ![fangpingmu](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/fangpingmu/32/532_2.png) [@fangpingmu](https://discourse.openondemand.org/u/fangpingmu)\
**Post date:** [June 24, 2021, 12:25am UTC](https://discourse.openondemand.org/t/bc-js-filepicker-error-after-upgrading-to-2-0-9/1544/6 "2021-06-24T00:25:43Z")

</div>

Upgrade OOD to 2.10

[root@ondemand-stage rshiny]# md5sum form.js  
f05e0d9cf581097487c07dce5158e89d form.js  
[root@ondemand-stage rshiny]# md5sum form.js\_old  
c9d06372cea9f1e9f23dc3ce0f0bbcd1 form.js\_old

Restart OOD

Using Firefox Private Windows and Chrome Incognito Window, I cannot see the “Select File” button.

 ![Screen Shot 2021-06-23 at 8.15.43 PM](https://us1.discourse-cdn.com/flex015/uploads/osc/original/1X/64dc9d264ba7033363317cfb45629c75e17a038b.png)

After I shift to the old form.js (v0.4.7), I can see the “Select File” button.

app\_directory:  
data-filepicker: true  
data-target-file-type: dirs  
help: |  
“The directory where the app is”

Are there cache for OOD apps?

---

<div class="post-metadata">

**Author:** ![westburg.2](https://avatars.discourse-cdn.com/v4/letter/w/0ea827/32.png) [@westburg.2](https://discourse.openondemand.org/u/westburg.2)\
**Post date:** [May 26, 2022, 3:42pm UTC](https://discourse.openondemand.org/t/bc-js-filepicker-error-after-upgrading-to-2-0-9/1544/7 "2022-05-26T15:42:53Z")

</div>


