@syncfusion/ej2-image-editor 28.1.39 → 28.2.3

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.
@@ -4921,14 +4921,16 @@ class Draw {
4921
4921
  this.openImageData(dropArea);
4922
4922
  return;
4923
4923
  }
4924
- let fileType = this.getFileExtensionFromURL(this.openURL).toLowerCase();
4924
+ let fileType = this.getFileExtensionFromURL(this.openURL);
4925
4925
  if (fileType) {
4926
+ fileType = fileType.toLowerCase();
4926
4927
  fileType = (fileType === 'jpg' || fileType === 'jpeg') ? 'jpeg' : fileType;
4927
4928
  }
4928
4929
  const isAllowedFileType = (fileType ? (extension.indexOf(fileType) > -1 ||
4929
4930
  (fileType === 'jpeg' && (parent.uploadSettings.allowedExtensions.indexOf('jpg') > -1 ||
4930
4931
  parent.uploadSettings.allowedExtensions.indexOf('jpeg') > -1))) : false) || this.isNullExtension;
4931
- if (this.openURL.indexOf('data:image/') > -1 && this.openURL.indexOf('base64') > -1) {
4932
+ if ((this.openURL.indexOf('data:image/') > -1 && this.openURL.indexOf('base64') > -1) ||
4933
+ this.openURL.indexOf('blob') > -1) {
4932
4934
  this.openImageData(dropArea, true);
4933
4935
  }
4934
4936
  else if (parent.uploadSettings.minFileSize || parent.uploadSettings.maxFileSize) {