From ca071f79c2af646e1b09ca649b7f64ec24eff85a Mon Sep 17 00:00:00 2001 From: qmwd2006 Date: Sun, 31 Mar 2024 07:18:10 +0800 Subject: [PATCH] web browser out ouf memory when upload large image file --- .../new-template-dialog/new-template-dialog.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 {