Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
Note: This feature is available in Web Workers.
The uploadTotal read-only property of the BackgroundFetchRegistration interface returns the total number of bytes to be sent to the server.
A Number.
Logging this property to the console returns the total number of this upload.
console.log(bgFetch.uploadTotal);