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 {