✨ feat(upload): 支持后台配置上传分片大小

This commit is contained in:
orion committed 2026-09-18 17:50:43 +08:00
1 parent 5b78ec6fbc
commit 272741ee49
11 files changed
+64 -5

No files matched your search

+2
View File
@@ -10,6 +10,7 @@ type Translate = (
type UseSendSubmitOptions = {
getMaxFileSize: () => number
getChunkSizeMB: () => number
notify: (message: string, type: AlertType) => void
translate: Translate
onProgress: (progress: UploadProgress) => void
@@ -51,6 +52,7 @@ export function useSendSubmit(options: UseSendSubmitOptions) {
expireValue,
expireStyle,
cancellation: active,
chunkSizeMB: options.getChunkSizeMB(),
onHashCalculated: options.onHashCalculated,
onFinalizing: options.onFinalizing,
onProgress: (progress: UploadProgress) => {