Skip to content

Allow selecting only directories from a data-url\file widget #4451

@TheOneTheOnlyJJ

Description

@TheOneTheOnlyJJ

Prerequisites

What theme are you using?

core

Is your feature request related to a problem? Please describe.

I want a data-url widget that allows users to select only directories.
I have not found any way to do it as of now.

Describe the solution you'd like

A new widget or UI Schema prop should be added that allows the user to select a directory instead of a file (or more).
This may have to wait until showDirectoryPicker becomes Baseline Newly Available.

Describe alternatives you've considered

I haven't come up with any alternative to this.
The input element does not seem like it accepts selecting directories in any way as of now.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions