class

FilePicker

@Js
class FilePicker : Elem

FilePicker allows selection of files.

See also: docDomkit

constructors make

fields accept

Indicate the types of files that the server accepts

multi

Does this picker allow selecting multiple files?

methods files

Get the list of currently selected files

reset

Reset picker to no selection

open

Programmtically open the client file chooser interface

onSelect

Callback when a file has been selected by this picker

accept 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 files
  • video/* representing video files
  • image/* representing image files

files DomFile[] files()

Get the list of currently selected files.

make new make()

multi Bool : multi

Does this picker allow selecting multiple files?

onSelect Void onSelect(|FilePicker| f)

Callback when a file has been selected by this picker.

open Void open()

Programmtically open the client file chooser interface.

reset Void reset()

Reset picker to no selection.

Haxall 4.0.5 ∙ 24-Feb-2026 14:33 EST