fix get storage streaming
This commit is contained in:
1 parent
7d6b1018ad
commit
080f000fd2
2 files changed
+44
-46
No files matched your search
+1
-1
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user