#File-Directory Picker Settings
1 messages · Page 1 of 1 (latest)
leaving as true should give you a directory picker
I seem to be able to pick a directory with the file picker configuration, but I also can pick a file, the picker not limiting the user to one or the other is unforunate.
there are a couple of different values you can provide to the filePicker option. We have it typed as
filePicker?: T extends string ? true | 'audio' | 'image' | 'video' | 'imagevideo' | 'folder' : undefined;
in the vtt types
folder should allow you to pick a directory
Similarly, it seems that while I"m able to pick a directory on something like the Forge Bazaar (or presumably S3), the stored string doesn't indicate what was selected.
Ahhhh, beautiful, thanks @fallow lake
but to be honest, I'm not sure if there is any difference between using true and 'folder'
filePicker: 'folder' doesn't seem to limit my selections to just directories though :/
there is not
true is folder
guess that should either be a bug report or a feature request then