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