Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server.
Property of apis/xhr/XMLHttpRequestapis/xhr/XMLHttpRequest
SyntaxNote: This property is read-only.
var result = element.upload;
Return Value
Returns an object of type
XMLHttpRequestUpload. Each XMLHttpRequest object has an associated XMLHttpRequestUpload object.
Examplesfunction transferComplete(evt) {
alert("The transfer is complete.");
}
function transferFailed(evt) {
alert("An error occurred while transferring the file.");
}
function transferCanceled(evt) {
alert("The transfer has been canceled by the user.");
}
var xhr= new XMLHttpRequest();
xhr.upload.addEventListener("load", transferComplete, false);
xhr.upload.addEventListener("error", transferFailed, false);
xhr.upload.addEventListener("abort", transferCanceled, false);
xhr.open();
Related specifications
Microsoft Developer Network: Windows Internet Explorer API reference Article
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4