@@ -20,7 +20,7 @@ import {
2020 headObject ,
2121 uploadFile ,
2222} from '@/lib/uploads/core/storage-service'
23- import type { StorageContext } from '@/lib/uploads/shared/types'
23+ import { getWorkspaceFileSize , type StorageContext } from '@/lib/uploads/shared/types'
2424import { MAX_FILE_SIZE } from '@/lib/uploads/utils/validation'
2525import { resolveForkFolderMapping } from '@/ee/workspace-forking/lib/copy/copy-workflows'
2626import {
@@ -219,7 +219,7 @@ export async function planForkFileCopies(params: {
219219 context : meta . context as StorageContext ,
220220 fileName : meta . originalName ,
221221 contentType : meta . contentType ,
222- size : meta . size ,
222+ size : getWorkspaceFileSize ( meta ) ,
223223 targetFileId : childFileId ,
224224 displayName : meta . displayName ,
225225 userId,
@@ -341,7 +341,7 @@ export async function executeForkFileBlobCopies(
341341 originalName : targetOriginalName ,
342342 displayName : targetDisplayName ,
343343 contentType : task . contentType ,
344- size : task . size ,
344+ sizeBytes : task . size ,
345345 deletedAt : null ,
346346 uploadedAt : new Date ( ) ,
347347 } )
@@ -389,7 +389,7 @@ export async function executeForkFileBlobCopies(
389389 originalName : targetOriginalName ,
390390 displayName : targetDisplayName ,
391391 contentType : task . contentType ,
392- size : task . size ,
392+ sizeBytes : task . size ,
393393 deletedAt : null ,
394394 uploadedAt : new Date ( ) ,
395395 } )
0 commit comments