BackgroundFetchRegistration: uploadTotal property

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The uploadTotal read-only property of the BackgroundFetchRegistration interface returns the total number of bytes to be sent to the server.

Value

Examples

Logging BackgroundFetchRegistration.uploadTotal to the console returns the uploadTotal.

console.log(bgFetch.uploadTotal);

Specifications

Specification
Background Fetch
# dom-backgroundfetchregistration-uploadtotal

Browser compatibility

BCD tables only load in the browser