root 4 maanden geleden
bovenliggende
commit
042d7a4948
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  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);