-
Notifications
You must be signed in to change notification settings - Fork 135
moxie.file.FileReader
Important! This page is auto-generated from the comments in the source files. All changes will be overwritten! If you are looking to contribute, modify the comment in the corresponding source file instead.
Utility for preloading o.Blob/o.File objects in memory. By design closely follows W3C FileReader interface. Where possible uses native FileReader, where - not falls back to shims.
UID of the component instance.
Contains current state of FileReader object. Can take values of FileReader.EMPTY, FileReader.LOADING and FileReader.DONE.
Result of the successful read operation.
Stores the error of failed asynchronous read operation.
EMPTY static
Initial FileReader state
LOADING static
FileReader switches to this state when it is preloading the source
DONE static
Preloading is complete, this is a final state
Initiates reading of File/Blob object contents to binary string.
Arguments
-
blob
Blob|File
Object to preload
Initiates reading of File/Blob object contents to dataURL string.
Arguments
-
blob
Blob|File
Object to preload
Initiates reading of File/Blob object contents to string.
Arguments
-
blob
Blob|File
Object to preload
Aborts preloading process.
Destroy component and release resources.
Dispatched when the read starts.
Arguments
-
event
Object
Dispatched while reading (and decoding) blob, and reporting partial Blob data (progess.loaded/progress.total).
Arguments
-
event
Object
Dispatched when the read has successfully completed.
Arguments
-
event
Object
Dispatched when the read has been aborted. For instance, by invoking the abort() method.
Arguments
-
event
Object
Dispatched when the read has failed.
Arguments
-
event
Object
Dispatched when the request has completed (either in success or failure).
Arguments
-
event
Object