diff --git a/src/app/components/project-map/new-template-dialog/new-template-dialog.component.ts b/src/app/components/project-map/new-template-dialog/new-template-dialog.component.ts index dab78d9e..aa6acf82 100644 --- a/src/app/components/project-map/new-template-dialog/new-template-dialog.component.ts +++ b/src/app/components/project-map/new-template-dialog/new-template-dialog.component.ts @@ -401,7 +401,8 @@ export class NewTemplateDialogComponent implements OnInit { this.progressService.activate(); }; - fileReader.readAsText(file); + //fileReader.readAsText(file); //web browser out ouf memory when upload large image file + fileReader.onloadend(undefined); } checkImageFromVersion(image: string): boolean {