Skip to content

Commit 1cc90b5

Browse files
committed
Merge pull request #52 from qiniu/fix_file_resume_chunk_upload_bug
fix resume upload bug again,wu wu wwu wu wu
2 parents b1b6249 + d49f361 commit 1cc90b5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

demo/js/qiniu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ function QiniuJsSDK() {
391391
var aDay = 24 * 60 * 60 * 1000; // milliseconds
392392
if (now - before < aDay) {
393393
if (localFileInfo.percent !== 100) {
394-
if (file.size === localStorage.total) {
394+
if (file.size === localFileInfo.total) {
395395
file.percent = localFileInfo.percent;
396396
file.loaded = localFileInfo.offset;
397397
ctx = localFileInfo.ctx;

src/qiniu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ function QiniuJsSDK() {
391391
var aDay = 24 * 60 * 60 * 1000; // milliseconds
392392
if (now - before < aDay) {
393393
if (localFileInfo.percent !== 100) {
394-
if (file.size === localStorage.total) {
394+
if (file.size === localFileInfo.total) {
395395
file.percent = localFileInfo.percent;
396396
file.loaded = localFileInfo.offset;
397397
ctx = localFileInfo.ctx;

0 commit comments

Comments
 (0)