mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
Check file size client side (#313)
This commit is contained in:
@@ -270,6 +270,11 @@ export class AddEditComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
file = files[0];
|
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) {
|
if (!this.editMode) {
|
||||||
|
|||||||
Reference in New Issue
Block a user