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 };
             }
         });
     }