Closed PeterNjeim closed 3 years ago
This is certainly possible with the File System Access API:
await showOpenFilePicker({
types: [
{
description: 'Text Files',
accept: {
'text/plain': ['.txt', '.text'],
'text/html': ['.html', '.htm']
}
},
{
description: 'Images',
accept: {
'image/*': ['.png', '.gif', '.jpeg', '.jpg']
}
}
],
});
I'm looking to add a way to make this happen in browser-fs-access
.
This is now supported as of v0.20.0
, which will go out in a moment.
Is it possible to allow multiple file types, separated in a list, with separate descriptions for each?
Of course, I can allow as many file types as I want, however I would like to follow what desktop programs do, and separate them out like this: Not a deal breaker obviously, just wondering if it's even possible on the web