@syncfusion/ej2-inputs 25.1.38 → 25.1.42

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.
@@ -9374,7 +9374,8 @@ let Uploader = class Uploader extends Component {
9374
9374
  allowedExtensions.push(extension.trim().toLocaleLowerCase());
9375
9375
  }
9376
9376
  for (let i = 0; i < files.length; i++) {
9377
- if (allowedExtensions.indexOf(('.' + files[i].type).toLocaleLowerCase()) === -1) {
9377
+ let checkFileType = files[i].type.indexOf(".") !== -1 ? files[i].type.replace(".", "") : files[i].type;
9378
+ if (allowedExtensions.indexOf(('.' + checkFileType).toLocaleLowerCase()) === -1) {
9378
9379
  files[i].status = this.localizedTexts('invalidFileType');
9379
9380
  files[i].statusCode = '0';
9380
9381
  }
@@ -9803,7 +9804,10 @@ let Uploader = class Uploader extends Component {
9803
9804
  let li;
9804
9805
  for (let i = 0; i < files.length; i++) {
9805
9806
  li = this.getLiElement(files[i]);
9806
- if (!li.classList.contains(UPLOAD_SUCCESS)) {
9807
+ if (!isNullOrUndefined(li) && !li.classList.contains(UPLOAD_SUCCESS)) {
9808
+ filterFiles.push(files[i]);
9809
+ }
9810
+ else if (!this.showFileList && files[i].status !== "File uploaded successfully") {
9807
9811
  filterFiles.push(files[i]);
9808
9812
  }
9809
9813
  }
@@ -10005,7 +10009,7 @@ let Uploader = class Uploader extends Component {
10005
10009
  const status = e.target;
10006
10010
  if (status.readyState === 4 && status.status >= 200 && status.status <= 299) {
10007
10011
  const li = this.getLiElement(file);
10008
- if (isNullOrUndefined(li) && (!customUI || isNullOrUndefined(customUI))) {
10012
+ if (isNullOrUndefined(li) && (!customUI || isNullOrUndefined(customUI)) && this.showFileList) {
10009
10013
  return;
10010
10014
  }
10011
10015
  if (!isNullOrUndefined(li)) {