Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob] Reuse same fileSize

Neeraj Gupta138515da02f5
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 {