Module Js_of_ocaml_lwt.File
include Js_of_ocaml.File
class type blob = object ... end
type 'a make_blob
= ?contentType:string -> ?endings:[ `Transparent | `Native ] -> 'a -> blob Js_of_ocaml.Js.t
val blob_from_string : string make_blob
val 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_blob
class type file = object ... end
module CoerceTo = Js_of_ocaml.File.CoerceTo
class type fileList = object ... end
class type fileError = object ... end
class type 'a progressEvent = object ... end
class type progressEventTarget = object ... end
class type fileReader = object ... end
module ReaderEvent = Js_of_ocaml.File.ReaderEvent
val filename : file Js_of_ocaml.Js.t -> Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t
filename
handles old firefox without name property
val fileReader : fileReader Js_of_ocaml.Js.t Js_of_ocaml.Js.constr
val 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_id
Add an event listener. This function matches the
addEventListener
DOM method, except that it returns an id for removing the listener.
include Js_of_ocaml_lwt__.Lwt_file
val readAsBinaryString : Js_of_ocaml.File.#blob Js_of_ocaml.Js.t -> Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t Lwt.t
val readAsText : Js_of_ocaml.File.#blob Js_of_ocaml.Js.t -> Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t Lwt.t
val 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.t
val readAsDataURL : Js_of_ocaml.File.#blob Js_of_ocaml.Js.t -> Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t Lwt.t