sig
class type blob =
object
method _type : Js.js_string Js.t Js.readonly_prop
method size : int Js.readonly_prop
method slice : int -> int -> File.blob Js.meth
method slice_withContentType :
int -> int -> Js.js_string Js.t -> File.blob Js.meth
end
class type file =
object
method _type : Js.js_string Js.t Js.readonly_prop
method lastModifiedDate : Js.js_string Js.t Js.readonly_prop
method name : Js.js_string Js.t Js.readonly_prop
method size : int Js.readonly_prop
method slice : int -> int -> blob Js.meth
method slice_withContentType :
int -> int -> Js.js_string Js.t -> blob Js.meth
end
type file_any
module CoerceTo :
sig val string : File.file_any -> Js.js_string Js.t Js.Opt.t end
class type fileList =
object
method item : int -> file Js.t Js.optdef Js.meth
method length : int Js.readonly_prop
end
class type fileError = object method code : int Js.readonly_prop end
type readyState = EMPTY | LOADING | DONE
class type fileReader =
object ('a)
method abort : unit Js.meth
method error : File.fileError Js.t Js.readonly_prop
method onabort :
('a Js.t, Dom_html.event Js.t) Dom_html.event_listener
Js.writeonly_prop
method onclick :
('a Js.t, Dom_html.mouseEvent Js.t) Dom_html.event_listener
Js.writeonly_prop
method ondblclick :
('a Js.t, Dom_html.mouseEvent Js.t) Dom_html.event_listener
Js.writeonly_prop
method onerror :
('a Js.t, Dom_html.event Js.t) Dom_html.event_listener
Js.writeonly_prop
method onkeydown :
('a Js.t, Dom_html.keyboardEvent Js.t) Dom_html.event_listener
Js.writeonly_prop
method onkeypress :
('a Js.t, Dom_html.keyboardEvent Js.t) Dom_html.event_listener
Js.writeonly_prop
method onkeyup :
('a Js.t, Dom_html.keyboardEvent Js.t) Dom_html.event_listener
Js.writeonly_prop
method onload :
('a Js.t, Dom_html.event Js.t) Dom_html.event_listener
Js.writeonly_prop
method onloadend :
('a Js.t, Dom_html.event Js.t) Dom_html.event_listener
Js.writeonly_prop
method onloadstart :
('a Js.t, Dom_html.event Js.t) Dom_html.event_listener
Js.writeonly_prop
method onmousedown :
('a Js.t, Dom_html.mouseEvent Js.t) Dom_html.event_listener
Js.writeonly_prop
method onmousemove :
('a Js.t, Dom_html.mouseEvent Js.t) Dom_html.event_listener
Js.writeonly_prop
method onmouseout :
('a Js.t, Dom_html.mouseEvent Js.t) Dom_html.event_listener
Js.writeonly_prop
method onmouseover :
('a Js.t, Dom_html.mouseEvent Js.t) Dom_html.event_listener
Js.writeonly_prop
method onmouseup :
('a Js.t, Dom_html.mouseEvent Js.t) Dom_html.event_listener
Js.writeonly_prop
method onprogress :
('a Js.t, Dom_html.event Js.t) Dom_html.event_listener
Js.writeonly_prop
method readAsArrayBuffer : File.blob Js.t -> unit Js.meth
method readAsBinaryString : File.blob Js.t -> unit Js.meth
method readAsDataURL : File.blob Js.t -> unit Js.meth
method readAsText : File.blob Js.t -> unit Js.meth
method readAsText_withEncoding :
File.blob Js.t -> Js.js_string Js.t -> unit Js.meth
method readyState : File.readyState Js.readonly_prop
method result : File.file_any Js.readonly_prop
end
val filename : File.file Js.t -> Js.js_string Js.t
val fileReader : File.fileReader Js.t Js.constr
val readAsBinaryString : File.blob Js.t -> Js.js_string Js.t Lwt.t
val readAsText : File.blob Js.t -> Js.js_string Js.t Lwt.t
val readAsText_withEncoding :
File.blob Js.t -> Js.js_string Js.t -> Js.js_string Js.t Lwt.t
val readAsDataURL : File.blob Js.t -> Js.js_string Js.t Lwt.t
end