Web/API/ProgressEvent/total

From Get docs


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

Update compatibility data on GitHub

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
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