🐛 fix(upload): 小文件分片不超过实际文件大小
This commit is contained in:
1 parent
f2461378ef
commit
a962f7aec7
2 files changed
+7
-1
No files matched your search
@@ -59,7 +59,7 @@ export const uploadChunkedFile = async (
|
||||
const initResponse = await FileService.initChunkUpload({
|
||||
file_name: file.name,
|
||||
file_size: file.size,
|
||||
chunk_size: CHUNK_SIZE,
|
||||
chunk_size: Math.min(CHUNK_SIZE, file.size),
|
||||
file_hash: fileHash
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user