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

Use showDirectoryPicker when supported #1251

Open
codedread opened this issue Mar 26, 2024 · 0 comments
Open

Use showDirectoryPicker when supported #1251

codedread opened this issue Mar 26, 2024 · 0 comments

Comments

@codedread
Copy link
Contributor

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant