[ADF-2675] The string given for 'Extension accepted' is not trim (#4069)

This commit is contained in:
dhrn
2018-12-11 20:20:45 +05:30
committed by Vito
parent c32d331a9b
commit 1d94d90716
2 changed files with 54 additions and 1 deletions

View File

@@ -156,7 +156,7 @@ export abstract class UploadBase implements OnInit, OnDestroy {
const allowedExtensions = this.acceptedFilesType
.split(',')
.map((ext) => ext.replace(/^\./, ''));
.map((ext) => ext.trim().replace(/^\./, ''));
if (allowedExtensions.indexOf(file.extension) !== -1) {
return true;