Skip to content

Commit

Permalink
πŸ› Fix size for direct root upload / URL uploads / versions (#830)
Browse files Browse the repository at this point in the history
  • Loading branch information
MontaGhanmy authored Feb 27, 2025
1 parent 39a062b commit 7d742f1
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7d742f1

Please sign in to comment.