π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Revert "Read in 4 MB blocks"
Manav Rathi31a70674ff3c
diff --git a/web/apps/photos/src/services/upload/uploadService.ts b/web/apps/photos/src/services/upload/uploadService.tsindex 15178b4de0..4295b6239b 100644--- a/web/apps/photos/src/services/upload/uploadService.ts+++ b/web/apps/photos/src/services/upload/uploadService.ts@@ -774,18 +774,9 @@ const computeHash = async (console.log("got stream and chunks", stream, chunkCount);const hashState = await worker.initChunkHashing();- const chunkedStream = stream.pipeThrough(- new TransformStream(- undefined,- new ByteLengthQueuingStrategy({- highWaterMark: ENCRYPTION_CHUNK_SIZE,- }),- ),- );- const streamReader = chunkedStream.getReader();+ const streamReader = stream.getReader();for (let i = 0; i < chunkCount; i++) {const { done, value: chunk } = await streamReader.read();- console.log("chunk size", chunk.length);if (done) throw new Error("Less chunks than expected");await worker.hashFileChunk(hashState, Uint8Array.from(chunk));}