1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 06:43:35 +00:00

Check file size client side (#313)

This commit is contained in:
Matt Gibson
2021-03-29 08:17:42 -05:00
committed by GitHub
parent afac694e9a
commit d71bd092ef

View File

@@ -270,6 +270,11 @@ export class AddEditComponent implements OnInit {
}
file = files[0];
if (files[0].size > 524288000) { // 500 MB
this.platformUtilsService.showToast('error', this.i18nService.t('errorOccurred'),
this.i18nService.t('maxFileSize'));
return;
}
}
if (!this.editMode) {