GoogleChromeLabs / browser-fs-access

File System Access API with legacy fallback in the browser
https://googlechromelabs.github.io/browser-fs-access/demo/
Apache License 2.0
1.38k stars 84 forks source link

default All Files(*.*) not working with fileOpen method in Chrome 86 #20

Closed kishok closed 3 years ago

kishok commented 3 years ago

Prerequisite: Chrome v86

Steps to reproduce: call fileOpen method without any options as below, const filehandle = await fileOpen();

Observations: when i debug the library source underhood this code logic seems to be the root cause,

window.showOpenFilePicker({ types: [ { description: '', accept: { '*.*':[]} } ], multiple: false });

Ref Original Source: https://github.com/GoogleChromeLabs/browser-nativefs/blob/master/src/nativefs/file-open.mjs

image

Expected behavior: we don't need to set All Files(*.*) filter manually in FilePicker API that is handled by default right. please provide the fix.

tomayac commented 3 years ago

Just published v0.11.0 that includes the fix. Thanks for reporting, and sorry again.