Allow additionalParameters to also be null #1191

Open
crowmagnumb wants to merge 1 commits from animalus/allow-params-null into development

View File

@@ -318,7 +318,7 @@ export class FileUploader {
} }
// For AWS, Additional Parameters must come BEFORE Files // For AWS, Additional Parameters must come BEFORE Files
if (this.options.additionalParameter !== undefined) { if (this.options.additionalParameter) {
Object.keys(this.options.additionalParameter).forEach((key: string) => { Object.keys(this.options.additionalParameter).forEach((key: string) => {
let paramVal = this.options.additionalParameter?.[ key ]; let paramVal = this.options.additionalParameter?.[ key ];
// Allow an additional parameter to include the filename // Allow an additional parameter to include the filename