The ProgressEvent.total
read-only property is an unsigned 64-bit integer value indicating the total size of the data being processed or transmitted. In the case of an HTTP transmission, this is the size of the body of the message (the Content-Length
), and does not include headers and other overhead.
If the event's lengthComputable
property is false
, this value is meaningless and should be ignored.
Syntax
let value = progressEvent.total;
Specifications
Specification | Status | Comment |
XMLHttpRequestThe definition of 'ProgressEvent.lengthComputable' in that specification. | Living Standard |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
total
|
Chrome
Full support Yes |
Edge
Full support 12 |
Firefox
Full support 3.5 |
IE
No support No |
Opera
Full support Yes |
Safari
Full support Yes |
WebView Android
Full support Yes |
Chrome Android
Full support Yes |
Firefox Android
Full support 4 |
Opera Android
Full support Yes |
Safari iOS
Full support Yes |
Samsung Internet Android
Full support Yes |
Legend
- Full support
- Full support
- No support
- No support
See also
- The
ProgressEvent
interface it belongs to.
ProgressEvent.total by Mozilla Contributors is licensed under CC-BY-SA 2.5.