Skip to content

Use showDirectoryPicker when supported #1251

@codedread

Description

@codedread

The current implementation shows an "upload" warning dialog makes it seem like I am sending all my mp3 files to the hosted site :

image
when in fact I am just giving the web app access to those local files.

showDirectoryPicker is supported in a significant portion of browsers (80% of desktop users). It provides a nicer experience by saying "Let site view files?" :

image

showDirectoryPicker() just returns a Promise<FileSystemDirectoryHandle>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions