BackgroundFetchRegistration: uploaded property
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{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}}