Skip to content

Use hash-wasm to calculate the hash of a file#6383

Merged
Cyperghost merged 2 commits into6.1from
6.1-file-upload-large-file
Jul 16, 2025
Merged

Use hash-wasm to calculate the hash of a file#6383
Cyperghost merged 2 commits into6.1from
6.1-file-upload-large-file

Conversation

@Cyperghost
Copy link
Copy Markdown
Contributor

When uploading larger files, the ArrayBuffer in the browser may not be large enough to load the file completely.
To calculate the sha256 hash, we need an external library because the browser's built-in functions do not yet support streaming(w3c/webcrypto#73).

@Cyperghost Cyperghost requested a review from dtdesign July 16, 2025 11:05
@Cyperghost Cyperghost merged commit fd45775 into 6.1 Jul 16, 2025
7 checks passed
@Cyperghost Cyperghost deleted the 6.1-file-upload-large-file branch July 16, 2025 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants