DomFile
@Js
class DomFile : Obj
DomFile models a DOM File object.
Return file name extension (everything after the last dot) or null name has no dot
Size of file in bytes
Asynchronously load file contents as a data: URI representing the file's contents
Name of file
Asynchronously load file contents as text and invoke the callback function with results
Create a DomFile instance from a native JavaScript DOM file
MIME type of the file as a read-only string or "" if the type could not be determined
Str? ext()
Return file name extension (everything after the last dot) or null name has no dot.
@Js
static DomFile fromNative(Obj file)
Create a DomFile instance from a native JavaScript DOM file.
Str name()
Name of file. This is just the file name, and does not include any path information.
Void readAsDataUri(|Uri| f)
Asynchronously load file contents as a data: URI representing the file's contents.
Void readAsText(|Str| f)
Asynchronously load file contents as text and invoke the callback function with results.
Int size()
Size of file in bytes.
Str type()
MIME type of the file as a read-only string or "" if the type could not be determined.