|
Re: Widget FileChooserField. Scout 11 [message #1843556 is a reply to message #1843549] |
Fri, 06 August 2021 07:03 |
|
Hi Felix
No, the file chooser widget does not currently offer this functionality. This is mainly due to browser restrictions: the <input type="file"> HTML element only allows uploading individual files, not entire folders.
We understand that browser manufacturers are experimenting with folder uploads. There is the webkitdirectory attribute that is supported by some modern browser engines. It seems to be working but is not an official standard yet, so the implementation may change any time in the future. We currently have no plans, to add this to the file chooser widget, but if you really need it, you could create your own widget.
Also note that the FileChooser has a property "multiSelect" that allows the user to upload multiple files at once. You have to start it from your own button or menu, since the FileChooserField only can hold a single file. There is a demo in the widgets app: FileChooserFieldForm.java#L438
Regards,
Beat
|
|
|
|
Powered by
FUDForum. Page generated in 0.03613 seconds