From 138515da02f5faa39adae300e968e887dfdd2ba8 Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Thu, 5 Sep 2024 09:30:31 +0530 Subject: [PATCH] [mob] Reuse same fileSize --- mobile/lib/utils/file_uploader.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/lib/utils/file_uploader.dart b/mobile/lib/utils/file_uploader.dart index 65940ce502..6bd59e55e0 100644 --- a/mobile/lib/utils/file_uploader.dart +++ b/mobile/lib/utils/file_uploader.dart @@ -1304,7 +1304,7 @@ class FileUploader { return _putFile( newUploadURL, file, - contentLength: (await file.readAsBytes()).length, + contentLength: fileSize, attempt: attempt + 1, ); } else {