@rws-framework/client 2.1.4 → 2.1.5
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/package.json
CHANGED
|
@@ -195,13 +195,14 @@ class ApiServiceInstance extends TheService {
|
|
|
195
195
|
return `${this.config.get('backendUrl')}${this.config.get('apiPrefix') || ''}${apiPath}`;
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
-
async uploadFile(url: string, file: File, onProgress: (progress: number) => void,
|
|
198
|
+
async uploadFile(url: string, file: File, onProgress: (progress: number) => void, data: any = {}): Promise<UploadResponse>
|
|
199
199
|
{
|
|
200
200
|
return upload(
|
|
201
201
|
|
|
202
202
|
url,
|
|
203
203
|
{
|
|
204
204
|
file,
|
|
205
|
+
...data
|
|
205
206
|
},
|
|
206
207
|
{
|
|
207
208
|
onProgress,
|