Skip to content

Commit

Permalink
web browser out ouf memory when upload large image file
Browse files Browse the repository at this point in the history
  • Loading branch information
qmwd2006 authored Mar 30, 2024
1 parent 6873432 commit ca071f7
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ca071f7

Please sign in to comment.