|
@@ -198,12 +198,14 @@ async function awsupload(file, folderid, filestate) {
|
|
|
|
|
|
if (uploadid) {
|
|
|
|
|
|
- return await awsuploadpart(filestate, file, uploadid, partsinfo.Parts, key);
|
|
|
+ var data = await awsuploadpart(filestate, file, uploadid, partsinfo.Parts, key);
|
|
|
+ return { data, uploadid };
|
|
|
}
|
|
|
|
|
|
else {
|
|
|
const uploadid = await initMultipartUpload(key, file);
|
|
|
- return await awsuploadpart(filestate, file, uploadid, [], key);
|
|
|
+ var data = await awsuploadpart(filestate, file, uploadid, [], key);
|
|
|
+ return { data, uploadid };
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -211,6 +213,7 @@ async function awsupload(file, folderid, filestate) {
|
|
|
|
|
|
filestate.percent = 100;
|
|
|
filestate.status = "success";
|
|
|
+ return { data };
|
|
|
}
|
|
|
});
|
|
|
}
|