π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Add logs for part upload
Neeraj Gupta34ea7749abea
diff --git a/mobile/lib/module/upload/service/multipart.dart b/mobile/lib/module/upload/service/multipart.dartindex 496f573bbe..ba2b859886 100644--- a/mobile/lib/module/upload/service/multipart.dart+++ b/mobile/lib/module/upload/service/multipart.dart@@ -187,7 +187,9 @@ class MultiPartUploader {final isLastPart = i == partsLength - 1;final fileSize =isLastPart ? encryptedFile.lengthSync() % partSize : partSize;-+ _logger.info(+ "Uploading part ${i + 1} / $partsLength of size $fileSize bytes (total size ${encryptedFile.lengthSync()}).",+ );final response = await _s3Dio.put(partURL,data: encryptedFile.openRead(diff --git a/mobile/lib/utils/file_uploader.dart b/mobile/lib/utils/file_uploader.dartindex 10eb0e07bf..1610468315 100644--- a/mobile/lib/utils/file_uploader.dart+++ b/mobile/lib/utils/file_uploader.dart@@ -1,6 +1,7 @@import 'dart:async';import 'dart:collection';import 'dart:convert';+import "dart:developer" as dev;import 'dart:io';import 'dart:math' as math;@@ -576,6 +577,7 @@ class FileUploader {final fileUploadURL = await _getUploadURL();fileObjectKey = await _putFile(fileUploadURL, encryptedFile);} else {+ dev.log("Init multipartUpload $multipartEntryExists", name: "Uploader");if (multipartEntryExists) {fileObjectKey = await _multiPartUploader.putExistingMultipartFile(encryptedFile,