@nger/fk-upload 1.0.201 → 1.0.202
Sign up to get free protection for your applications and to get access to all the features.
@@ -103,12 +103,14 @@ let FkService = class FkService {
|
|
103
103
|
}
|
104
104
|
async startUploadFile(task) {
|
105
105
|
const info = await this.getUploadInfo(task.loginId, task.filename, task.fileMd5, task.total);
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
106
|
+
if (info) {
|
107
|
+
task.cookies = info.cookies;
|
108
|
+
task.splitSize = info.splitSize;
|
109
|
+
task.start = info.uploadedSize;
|
110
|
+
task.uploadUrl = info.uploadUrl;
|
111
|
+
task.index = Math.ceil(info.uploadedSize / info.splitSize);
|
112
|
+
return await this.uploadFile(task);
|
113
|
+
}
|
112
114
|
}
|
113
115
|
async getSize(url) {
|
114
116
|
const size = (0, core_1.defer)();
|