' Non-standard This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.
Summary
The FileRequest
interface extends the [[../../../Archive/B2G_OS/API/DOMRequest|DOMRequest
]] interface to provide some extra properties necessary for the LockedFile
objects.
Properties
FileRequest.lockedFile
Read only- The
LockedFile
object from which the request was started. FileRequest.onprogress
- A callback handler called repeatedly while the operation represented by the
FileRequest
is in progress.
The FileRequest
interface also inherits from the [[../../../Archive/B2G_OS/API/DOMRequest|DOMRequest
]] interface.
- [[../../../Archive/B2G_OS/API/DOMRequest/onsuccess|
DOMRequest.onsuccess
]] - A callback handler called when the operation represented by the
DOMRequest
is completed. - [[../../../Archive/B2G_OS/API/DOMRequest/onerror|
DOMRequest.onerror
]] - A callback handler that gets called when an error occurs while processing the operation.
- [[../../../Archive/B2G_OS/API/DOMRequest/readyState|
DOMRequest.readyState
]] - A
string
indicating whether or not the operation is finished running. Its value is either "done" or "pending". - [[../../../Archive/B2G_OS/API/DOMRequest/result|
DOMRequest.result
]] - The operation's result.
- [[../../../Archive/B2G_OS/API/DOMRequest/error|
DOMRequest.error
]] - Error information, if any.
Methods
None.
Specifications
Specification | Status | Comment |
FileSystem API | Editor's Draft | Draft proposal. |
See also
FileRequest by Mozilla Contributors is licensed under CC-BY-SA 2.5.