osl-base-extended 3.0.0 → 3.0.1
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.
|
@@ -403,12 +403,13 @@ class Httpbase {
|
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
405
|
/** Multipart file upload — do NOT pass Content-Type; browser sets the boundary */
|
|
406
|
-
async upload(methodName, formData) {
|
|
406
|
+
async upload(methodName, formData, params) {
|
|
407
407
|
try {
|
|
408
408
|
const res = await firstValueFrom(this.http
|
|
409
409
|
.post(this.getEndPoint(methodName), formData, {
|
|
410
410
|
observe: 'response',
|
|
411
411
|
headers: this.getUploadHeaders(),
|
|
412
|
+
params: this.buildParams(params || [])
|
|
412
413
|
})
|
|
413
414
|
.pipe(timeout(60000)));
|
|
414
415
|
return this.handleSuccess(res.status, res.body, res.headers);
|