Vdom_input_widgets.File_selectElements for selecting files from local disk
NOTE: File inputs are unique in that they cannot be set programmatically, other than setting them to empty. Therefore, they don't take a "current value" parameter and instead act more like uncontrolled components.
val single :
?extra_attrs:Virtual_dom.Vdom.Attr.t list ->
?accept:[ `Extension of string | `Mimetype of string ] list ->
?merge_behavior:Merge_behavior.t ->
on_input:
(Js_of_ocaml.File.file Js_of_ocaml.Js.t option ->
unit Virtual_dom.Vdom.Effect.t) ->
unit ->
Virtual_dom.Vdom.Node.tval list :
?extra_attrs:Virtual_dom.Vdom.Attr.t list ->
?accept:[ `Extension of string | `Mimetype of string ] list ->
?merge_behavior:Merge_behavior.t ->
on_input:
(Js_of_ocaml.File.file Js_of_ocaml.Js.t list ->
unit Virtual_dom.Vdom.Effect.t) ->
unit ->
Virtual_dom.Vdom.Node.t