FileRequest

非标
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.

摘要

FileRequest interface extends the DOMRequest interface to provide some extra properties necessary for the LockedFile 对象。

特性

FileRequest.lockedFile 只读
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.

FileRequest interface also inherits from the DOMRequest 接口。

DOMRequest.onsuccess
A callback handler called when the operation represented by the DOMRequest is completed.
DOMRequest.onerror
A callback handler that gets called when an error occurs while processing the operation.
DOMRequest.readyState
A string indicating whether or not the operation is finished running. Its value is either "done" or "pending".
DOMRequest.result
The operation's result.
DOMRequest.error
Error information, if any.

方法

None.

规范

规范 状态 Comment
FileSystem API 编者草案 Draft proposal.

另请参阅