#File-Directory Picker Settings

1 messages · Page 1 of 1 (latest)

red root
paper cliff
#

leaving as true should give you a directory picker

red root
#

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.

paper cliff
#

thatsaid you can also pick a file

#

ye

#

does filePicker: "directory" do anything?

fallow lake
#

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

red root
#

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

fallow lake
#

but to be honest, I'm not sure if there is any difference between using true and 'folder'

red root
#

filePicker: 'folder' doesn't seem to limit my selections to just directories though :/

fallow lake
#

guess that should either be a bug report or a feature request then