root 4 months ago
parent
commit
042d7a4948
1 changed files with 1 additions and 1 deletions
  1. 1 1
      js/Common/awsupload.js

+ 1 - 1
js/Common/awsupload.js

@@ -155,7 +155,7 @@ async function awsuploadpart(filestate, file, uploadid, parts, key) {
     let uploadpart;
     let start = 0;
     let end = 0;
-    let len = Math.ceil(file.length / partsize); //循环的长度
+    let len = Math.ceil(file.size / partsize); //循环的长度
     if (partarr.length) {
         filestate.status = "processing";
         filestate.percent = parseInt((completeparts.length * 100) / count);