diff --git a/libs/portal-plugin-dashboard/src/features/upload/Manager.ts b/libs/portal-plugin-dashboard/src/features/upload/Manager.ts index 0f39465d0..da2fca750 100644 --- a/libs/portal-plugin-dashboard/src/features/upload/Manager.ts +++ b/libs/portal-plugin-dashboard/src/features/upload/Manager.ts @@ -247,10 +247,10 @@ export class Manager implements IUploadManager { // For folder bundles, use the size field const meta = file.meta as BundleMetadata; if (meta?.isVirtualBundle && meta?.displayAsFolder) { - if (file.size) { - totalBytes += file.size; + const bundleTotal = file.progress.bytesTotal || file.size; + if (bundleTotal) { + totalBytes += bundleTotal; } - // Use Uppy's built-in progress tracking if (file.progress.bytesUploaded) { uploadedBytes += file.progress.bytesUploaded; }