class dom::DomFile

sys::Obj
  dom::DomFile

@Js

Source

DomFile models a DOM File object.

name

Str name()

Source

Name of file. This is just the file name, and does not include any path information.

readAsDataUri

Void readAsDataUri(|Uri| f)

Source

Asynchronously load file contents as a data: URI representing the file's contents.

readAsText

Void readAsText(|Str| f)

Source

Asynchronously load file contents as text and invoke the callback function with results.

size

Int size()

Source

Size of file in bytes.

type

Str type()

Source

MIME type of the file as a read-only string or "" if the type could not be determined.