Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Support directory upload and clearing inputs from Python for FileInput widget #13861

Open
hoxbro opened this issue May 3, 2024 · 0 comments · May be fixed by #13873
Open

[FEATURE] Support directory upload and clearing inputs from Python for FileInput widget #13861

hoxbro opened this issue May 3, 2024 · 0 comments · May be fixed by #13873

Comments

@hoxbro
Copy link
Contributor

hoxbro commented May 3, 2024

Problem description

I have two requests both related to the FileInput widget.

  1. Make it possible to upload directories with FileInput
    The HTML element input has the property webkitdirectory, more information here. This property makes it possible to upload a directory. Note that when uploading a directory it will give a warning in the browser for security reasons.
    image

  2. Clearing the inputs
    I would also like to be able to clear the inputs from the Python side. In my implementation, this is done inelegantly because the parameters are readonly (more to show it is possible).

Feature description

  1. Add the webkitdirectory property in BokehJS and expose it in Bokeh (I would suggest removing webkit from the name)

  2. Have a clear_input method or similar

Potential alternatives

None.

Additional information

I have made a POC of it in Panel: https://github.com/holoviz/panel/pull/6808/files

But most of it is just coping over the FileInput widgets from Bokeh with minor changes.

@hoxbro hoxbro added the TRIAGE label May 3, 2024
@mattpap mattpap added this to the 3.5 milestone May 3, 2024
@hoxbro hoxbro linked a pull request May 6, 2024 that will close this issue
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants