Closed kishok closed 3 years ago
Prerequisite: Chrome v86
Steps to reproduce: call fileOpen method without any options as below, const filehandle = await fileOpen();
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
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.
Just published v0.11.0 that includes the fix. Thanks for reporting, and sorry again.
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
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.