MDN self-hosted library · e01.org

BackgroundFetchRegistration: uploadTotal property

Background Fetch API

Open notebook · 1 cells web-api-instance-property upstream source

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);

Specifications

Browser compatibility