✨ feat(upload): 支持后台配置上传分片大小
This commit is contained in:
1 parent
5b78ec6fbc
commit
272741ee49
11 files changed
+64
-5
No files matched your search
@@ -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) => {
|
||||
|
||||
Reference in new issue
Block a user