We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7fc9e8 commit 746a54cCopy full SHA for 746a54c
examples/browser-exchange-files/public/app.js
@@ -239,9 +239,9 @@ async function getFile () {
239
240
FILES.push(hash)
241
242
- for await (const file of node.get(hash)) {
243
- if (file.content) {
244
- const content = uint8ArrayConcat(await all(file.content))
+ for await (const file of node.ls(hash)) {
+ if (file.type === 'file') {
+ const content = uint8ArrayConcat(await all(node.cat(file.cid)))
245
246
await appendFile(file.name, hash, file.size, content)
247
onSuccess(`The ${file.name} file was added.`)
0 commit comments