BackgroundFetchRegistration: uploadTotal property
Background Fetch API
Background Fetch API
The uploadTotal read-only property of the BackgroundFetchRegistration interface returns the total number of bytes to be sent to the server.
Value
A Number.
Examples
Logging this property to the console returns the total number of this upload.
console.log(bgFetch.uploadTotal);