@samluvanda/uploadx
Version:
Modern, lightweight, and extensible JavaScript file uploader supporting chunked uploads, filtering, retry logic, progress tracking, and event hooks.
24 lines (21 loc) • 350 B
JavaScript
export class QueueProgress {
constructor() {
this.reset();
}
size = 0;
loaded = 0;
uploaded = 0;
failed = 0;
queued = 0;
percent = 0;
bytesPerSec = 0;
reset() {
this.size = 0;
this.loaded = 0;
this.uploaded = 0;
this.failed = 0;
this.queued = 0;
this.percent = 0;
this.bytesPerSec = 0;
}
}