We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If I put a file as param I got this error: Error: Content was invalid.
Error: Content was invalid
The code: await Hash.of(file)
await Hash.of(file)
How can we compute the hash of a file ?
The text was updated successfully, but these errors were encountered:
Had same issue, managed to fix it by sending Uint8Array of my file's buffer
const arrayBuffer = await fetch(url).then(response => response.arrayBuffer()); const cid = await Hash.of(new Uint8Array(arrayBuffer));
Sorry, something went wrong.
No branches or pull requests
If I put a file as param I got this error:
Error: Content was invalid
.The code:
await Hash.of(file)
How can we compute the hash of a file ?
The text was updated successfully, but these errors were encountered: