Allow additionalParameters to also be null

This commit is contained in:
Ken Southerland
2021-12-17 14:58:05 -08:00
committed by GitHub
parent 19ec08cc02
commit 088b8de948

View File

@@ -318,7 +318,7 @@ export class FileUploader {
}
// 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) => {
let paramVal = this.options.additionalParameter?.[ key ];
// Allow an additional parameter to include the filename