Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Files API add example has a bug #598

Closed
pcowgill opened this issue Feb 24, 2020 · 1 comment
Closed

Files API add example has a bug #598

pcowgill opened this issue Feb 24, 2020 · 1 comment

Comments

@pcowgill
Copy link

In the example here, content wouldn't be defined.

const files = [{
  path: '/tmp/myfile.txt',
  content: 'ABC'
}]

for await (const result of ipfs.add(content)) {
  console.log(result)
}
@achingbrain
Copy link
Collaborator

Thanks for pointing it out - it'll be fixed by #597

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants