fix get storage streaming

This commit is contained in:
user committed 2025-02-25 17:39:27 +03:00
1 parent 7d6b1018ad
commit 080f000fd2
2 files changed
+44 -46

No files matched your search

+1 -1
View File
@@ -54,7 +54,7 @@
// Compute SHA-256 hash of a file using jsSHA library (incremental reading)
function computeSHA256(file) {
return new Promise((resolve, reject) => {
const chunkSize = 2097152; // 2MB per chunk
const chunkSize = 2097152 * 10; // 2MB per chunk
let offset = 0;
const reader = new FileReader();
const shaObj = new jsSHA("SHA-256", "ARRAYBUFFER");