π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Restrict multipart upload to debug builds
Neeraj Gupta733fe6b3d8e6
diff --git a/mobile/lib/utils/file_uploader.dart b/mobile/lib/utils/file_uploader.dartindex adf5847f39..ec77b035a6 100644--- a/mobile/lib/utils/file_uploader.dart+++ b/mobile/lib/utils/file_uploader.dart@@ -29,7 +29,6 @@ import "package:photos/models/metadata/file_magic.dart";import 'package:photos/models/upload_url.dart';import "package:photos/models/user_details.dart";import 'package:photos/services/collections_service.dart';-import "package:photos/services/feature_flag_service.dart";import "package:photos/services/file_magic_service.dart";import 'package:photos/services/local_sync_service.dart';import 'package:photos/services/sync_service.dart';@@ -497,7 +496,7 @@ class FileUploader {// Calculate the number of parts for the file. Multiple part upload// is only enabled for internal users and debug builds till it's battle tested.- final count = FeatureFlagService.instance.isInternalUserOrDebugBuild()+ final count = kDebugMode? await calculatePartCount(await encryptedFile.length(),)