File upload.

This commit is contained in:
2025-05-12 22:27:17 +08:00
parent d646cf779d
commit bea9e24e98
7 changed files with 383 additions and 29 deletions

View File

@@ -15,7 +15,7 @@ func CreateUploadingFile(filename string, description string, fileSize int64, bl
TotalSize: fileSize,
BlockSize: blockSize,
TempPath: tempPath,
Blocks: make(model.UploadingFileBlocks, blocksCount),
Blocks: make([]bool, blocksCount),
TargetResourceID: resourceID,
TargetStorageID: storageID,
UserID: userID,