We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4a7099 commit 397de09Copy full SHA for 397de09
1 file changed
components/file-upload/file-uploader.class.ts
@@ -31,6 +31,7 @@ export interface FileUploaderOptions {
31
disableMultipart?:boolean;
32
itemAlias?: string;
33
authTokenHeader?: string;
34
+ additionalParameter?:{[key: string]: any};
35
}
36
37
export class FileUploader {
@@ -307,6 +308,12 @@ export class FileUploader {
307
308
this._onBuildItemForm(item, sendable);
309
310
sendable.append(item.alias, item._file, item.file.name);
311
+
312
+ if (this.options.additionalParameter !== undefined) {
313
+ Object.keys(this.options.additionalParameter).forEach((key:string) => {
314
+ sendable.append(key, this.options.additionalParameter[key]);
315
+ });
316
+ }
317
} else {
318
sendable = item._file;
319
0 commit comments