classdom::DomFile

sys::Obj
  dom::DomFile

@Js

DomFile models a DOM File object.

ext

Source

Str? ext()

Return file name extension (everything after the last dot) or null name has no dot.

name

Source

Str name()

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

readAsDataUri

Source

Void readAsDataUri(|Uri f)

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

readAsText

Source

Void readAsText(|Str f)

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

size

Source

Int size()

Size of file in bytes.

type

Source

Str type()

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