Back to Content

BackgroundFetchRegistration: uploadTotal property

files/en-us/web/api/backgroundfetchregistration/uploadtotal/index.md

latest485 B
Original Source

{{APIRef("Background Fetch API")}}{{SeeCompatTable}}{{AvailableInWorkers}}

The uploadTotal read-only property of the {{domxref("BackgroundFetchRegistration")}} interface returns the total number of bytes to be sent to the server.

Value

A {{jsxref("number")}}.

Examples

Logging this property to the console returns the total number of this upload.

js
console.log(bgFetch.uploadTotal);

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}