Fix zip file size calculation

This commit is contained in:
Hakan Shehu
2025-05-08 11:22:54 +02:00
parent 69641b0783
commit a87cd8aa39

View File

@@ -88,8 +88,8 @@ export class S3Zip {
this.cancel(error);
});
this.archiver.on('progress', (progress) => {
this.zipFileSize = progress.fs.processedBytes;
this.passThrough.on('data', (chunk) => {
this.zipFileSize += chunk.length;
});
this.passThrough.on('error', (error) => {