Js_of_ocaml_lwt.Fileinclude module type of struct include Js_of_ocaml.File endclass type blob = object ... endtype 'a make_blob =
?contentType:string ->
?endings:[ `Transparent | `Native ] ->
'a ->
blob Js_of_ocaml.Js.tval blob_from_string : string make_blobval blob_from_any :
[ `blob of blob Js_of_ocaml.Js.t
| `arrayBuffer of Js_of_ocaml.Typed_array.arrayBuffer Js_of_ocaml.Js.t
| `arrayBufferView of
Js_of_ocaml.Typed_array.arrayBufferView Js_of_ocaml.Js.t
| `string of string
| `js_string of Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t ]
list
make_blobclass type file = object ... endtype file_any = Js_of_ocaml.File.file_anymodule CoerceTo = Js_of_ocaml.File.CoerceToclass type fileList = object ... endclass type fileError = object ... endclass type 'a progressEvent = object ... endclass type progressEventTarget = object ... endclass type fileReader = object ... endmodule ReaderEvent = Js_of_ocaml.File.ReaderEventval filename :
file Js_of_ocaml.Js.t ->
Js_of_ocaml.Js.js_string Js_of_ocaml.Js.tfilename handles old firefox without name property
val fileReader : fileReader Js_of_ocaml.Js.t Js_of_ocaml.Js.constrval addEventListener :
(progressEventTarget Js_of_ocaml.Js.t as 'a) ->
'b Js_of_ocaml.Dom.Event.typ ->
('a, 'b) Js_of_ocaml.Dom.event_listener ->
bool Js_of_ocaml.Js.t ->
Js_of_ocaml.Dom.event_listener_idAdd an event listener. This function matches the addEventListener DOM method, except that it returns an id for removing the listener.
val readAsBinaryString :
Js_of_ocaml.File.blob Js_of_ocaml.Js.t ->
Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t Lwt.tval readAsText :
Js_of_ocaml.File.blob Js_of_ocaml.Js.t ->
Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t Lwt.tval readAsText_withEncoding :
Js_of_ocaml.File.blob Js_of_ocaml.Js.t ->
Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t ->
Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t Lwt.tval readAsDataURL :
Js_of_ocaml.File.blob Js_of_ocaml.Js.t ->
Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t Lwt.t