bruce-models 2.3.2 → 2.3.3
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.
package/dist/bruce-models.umd.js
CHANGED
|
@@ -5220,6 +5220,15 @@
|
|
|
5220
5220
|
req,
|
|
5221
5221
|
onProgress
|
|
5222
5222
|
});
|
|
5223
|
+
// TODO: Check if we can add it to the request like the small file upload.
|
|
5224
|
+
if ((clientFile === null || clientFile === void 0 ? void 0 : clientFile.ID) && purpose) {
|
|
5225
|
+
yield UpdatePurpose({
|
|
5226
|
+
api,
|
|
5227
|
+
fileId: clientFile.ID,
|
|
5228
|
+
purpose,
|
|
5229
|
+
req
|
|
5230
|
+
});
|
|
5231
|
+
}
|
|
5223
5232
|
}
|
|
5224
5233
|
else {
|
|
5225
5234
|
req.onProgress = (progress) => {
|
|
@@ -5229,16 +5238,13 @@
|
|
|
5229
5238
|
uploaded: false
|
|
5230
5239
|
});
|
|
5231
5240
|
};
|
|
5241
|
+
if (purpose) {
|
|
5242
|
+
req.formData = {
|
|
5243
|
+
Purpose: purpose
|
|
5244
|
+
};
|
|
5245
|
+
}
|
|
5232
5246
|
clientFile = yield api.UPLOAD("file/uploadNew", file, req);
|
|
5233
5247
|
}
|
|
5234
|
-
if ((clientFile === null || clientFile === void 0 ? void 0 : clientFile.ID) && purpose) {
|
|
5235
|
-
yield UpdatePurpose({
|
|
5236
|
-
api,
|
|
5237
|
-
fileId: clientFile.ID,
|
|
5238
|
-
purpose,
|
|
5239
|
-
req
|
|
5240
|
-
});
|
|
5241
|
-
}
|
|
5242
5248
|
onProgress === null || onProgress === void 0 ? void 0 : onProgress({
|
|
5243
5249
|
percent: 100,
|
|
5244
5250
|
uploaded: true
|