Back to Content

BackgroundFetchRegistration: uploaded property

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

latest679 B
Original Source

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

The uploaded read-only property of the {{domxref("BackgroundFetchRegistration")}} interface returns the size in bytes successfully sent, initially 0.

If the value of this property changes, the progress event is fired at the associated {{domxref("BackgroundFetchRegistration")}} object.

Value

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

Examples

Logging this property to the console returns the number of bytes uploaded.

js
console.log(bgFetch.uploaded);

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}