webamp icon indicating copy to clipboard operation
webamp copied to clipboard

Use showDirectoryPicker when supported

Open codedread opened this issue 1 year ago • 0 comments

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>

codedread avatar Mar 26 '24 19:03 codedread