🐛 Fix size for direct root upload / URL uploads / versions (#830)

This commit is contained in:
Montassar Ghanmy
2025-02-27 10:47:19 +01:00
committed by GitHub
parent 39a062b942
commit 7d742f1f1b
@@ -305,6 +305,13 @@ class FileUploadService {
callback?: (file: { root: string; file: FileType | null }, context: any) => void;
},
): Promise<PendingFileType[]> {
// if we're uploading one file directly, do the size calc first
for (const file of fileList) {
if (file.root && file.file?.name && file.root === file.file.name) {
this.rootSizes[file.root] = file.file.size;
}
}
const { companyId } = RouterServices.getStateFromRoute();
if (!fileList || !companyId) {