root 4 月之前
父節點
當前提交
27eff3abc2
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      js/Common/awsupload.js

+ 3 - 3
js/Common/awsupload.js

@@ -199,13 +199,13 @@ async function awsupload(file, folderid, filestate) {
                 if (uploadid) {
                     //断点续传
                     var data = await awsuploadpart(filestate, file, uploadid, partsinfo.Parts, key);
-                    return { data, uploadid };
+                    return { data, key, uploadid };
                 }
                 //不存在,上传新的
                 else {
                     const uploadid = await initMultipartUpload(key, file); //初始化文件上传
                     var data = await awsuploadpart(filestate, file, uploadid, [], key);
-                    return { data, uploadid };
+                    return { data, key, uploadid };
                 }
             }
             //如果已经上传成功了,那么直接返回状态百分百
@@ -213,7 +213,7 @@ async function awsupload(file, folderid, filestate) {
                 //data存在,上传成功
                 filestate.percent = 100;
                 filestate.status = "success";
-                return { data };
+                return { data, key };
             }
         });
     }