mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 15:15:34 +03: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:
parent
2fbd3b4538
commit
3ef5ca9cc0
3 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -102,7 +102,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);
|
||||
|
|
|
@ -926,7 +926,7 @@
|
|||
<value>Feature Unavailable</value>
|
||||
</data>
|
||||
<data name="MaxFileSize" xml:space="preserve">
|
||||
<value>Maximum file size is 500 MB.</value>
|
||||
<value>Maximum file size is 100 MB.</value>
|
||||
</data>
|
||||
<data name="UpdateKey" xml:space="preserve">
|
||||
<value>You cannot use this feature until you update your encryption key.</value>
|
||||
|
|
Loading…
Reference in a new issue