FilePicker
@Js
class FilePicker : Elem
FilePicker allows selection of files.
See also: docDomkit
Indicate the types of files that the server accepts
Does this picker allow selecting multiple files?
Get the list of currently selected files
Reset picker to no selection
Programmtically open the client file chooser interface
Callback when a file has been selected by this picker
Str? : accept
Indicate the types of files that the server accepts. The value must be a comma-separated list of unique content type specifiers:
- A file extension starting with a
.: (e.g. .jpg, .png, .doc) - A valid MIME type with no extensions
audio/*representing sound filesvideo/*representing video filesimage/*representing image files
DomFile[] files()
Get the list of currently selected files.
new make()
Bool : multi
Does this picker allow selecting multiple files?
Void onSelect(|FilePicker| f)
Callback when a file has been selected by this picker.
Void open()
Programmtically open the client file chooser interface.
Void reset()
Reset picker to no selection.