@nger/fk-upload 1.0.201 → 1.0.202
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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)();
|