From e05c5598a0295928e5019825f521638613e6936b Mon Sep 17 00:00:00 2001 From: Self Not Found Date: Wed, 14 Sep 2022 19:21:21 +0800 Subject: [PATCH] Mobile: Increase the attachment size limit to 200MB (#6848) --- packages/app-mobile/components/screens/Note.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/app-mobile/components/screens/Note.tsx b/packages/app-mobile/components/screens/Note.tsx index 366829cce..cd5f9a15a 100644 --- a/packages/app-mobile/components/screens/Note.tsx +++ b/packages/app-mobile/components/screens/Note.tsx @@ -866,9 +866,9 @@ class NoteScreenComponent extends BaseScreenComponent { await shim.fsDriver().copy(localFilePath, targetPath); const stat = await shim.fsDriver().stat(targetPath); - if (stat.size >= 10000000) { + if (stat.size >= 200 * 1024 * 1024) { await shim.fsDriver().remove(targetPath); - throw new Error('Resources larger than 10 MB are not currently supported as they may crash the mobile applications. The issue is being investigated and will be fixed at a later time.'); + throw new Error('Resources larger than 200 MB are not currently supported as they may crash the mobile applications. The issue is being investigated and will be fixed at a later time.'); } } }