Skip to content

Commit 24f816e

Browse files
author
zhangheng
committed
暂停后ctx无size信息的问题
1 parent 3d8a8f8 commit 24f816e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/upload.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ export class UploadManager {
205205
let shouldCheckMD5 = this.config.checkByMD5;
206206
let reuseSaved = () => {
207207
this.updateChunkProgress(chunk.size, index);
208-
this.ctxList[index] = {ctx: info.ctx, time: info.time, md5: info.md5};
208+
this.ctxList[index] = {ctx: info.ctx, size: info.size, time: info.time, md5: info.md5};
209209
return Promise.resolve(null);
210210
};
211211

@@ -243,6 +243,7 @@ export class UploadManager {
243243
size: chunk.size,
244244
md5: md5
245245
};
246+
console.log(this.ctxList);
246247
});
247248
});
248249
}

0 commit comments

Comments
 (0)