Skip to content

Commit 258e47d

Browse files
committed
fix localFileInfo.offset bug
1 parent 4f3dd49 commit 258e47d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/qiniu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ function QiniuJsSDK() {
390390
file.percent = localFileInfo.percent;
391391
ctx = localFileInfo.ctx;
392392
if (localFileInfo.offset + blockSize > file.size) {
393-
blockSize = file.size - localFileInfo.ctx;
393+
blockSize = file.size - localFileInfo.offset;
394394
}
395395
}
396396
up.setOption({

0 commit comments

Comments
 (0)