Skip to content

Commit 27c80bc

Browse files
author
zhangheng
committed
加注释
1 parent 806e3f1 commit 27c80bc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/upload.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,9 @@ export class UploadManager {
230230
onProgress,
231231
onCreate
232232
}).then(response => {
233+
// 在某些浏览器环境下,xhr 的 progress 事件无法被触发,progress 为 null,这里在每次分片上传完成后都手动更新下 progress
233234
onProgress({ loaded: chunk.size });
235+
234236
this.ctxList[index] = {
235237
time: new Date().getTime(),
236238
ctx: response.data.ctx,

0 commit comments

Comments
 (0)