mirror of
https://github.com/bitwarden/mobile
synced 2025-12-11 13:53:29 +00:00
Limit file upload sizes to 100MB (#1385)
both iOS and Android are having trouble with the current method of loading the entire file to memory, encrypting it, and sending to azure in one go. We will need to come up with a chunking scheme to support larger files in the future
This commit is contained in:
@@ -356,7 +356,7 @@ namespace Bit.App.Pages
|
||||
AppResources.AnErrorHasOccurred);
|
||||
return false;
|
||||
}
|
||||
if (FileData.Length > 524288000) // 500 MB
|
||||
if (FileData.Length > 104857600) // 100 MB
|
||||
{
|
||||
await _platformUtilsService.ShowDialogAsync(AppResources.MaxFileSize,
|
||||
AppResources.AnErrorHasOccurred);
|
||||
|
||||
Reference in New Issue
Block a user