web browser out ouf memory when upload large image file

This commit is contained in:
qmwd2006 2024-03-31 07:18:10 +08:00 committed by GitHub
parent 6873432833
commit ca071f79c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {