How to upload an json and retireve it from IPFS? #639
Unanswered
Learnedprawn
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to build an react application which uses IPFS storage. In this particular application I need to upload a json file when a whose contents are produced using a form on one page and retrieve that form using the CID on another. I have tried using the unixfs(helia) and addBytes method. Also used the j = json(helia), j.add(content) method. Also passed the blockstore, datastore and libp2p objects while creating the helia node. It gives websocket errors in the browser console during retrieval. Also side question, if helia is meant to be used for mainly browser based applications why is there a tcp dialing feature which is not supported in browsers?
I know this is a very basic question but I cannot get it to work.
Any help would be greatly appreciated❤️!
Beta Was this translation helpful? Give feedback.
All reactions