You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 29, 2020. It is now read-only.
I see that this is probably going to be a small project. I did have some success with small files, but this does not handle chunking:
const UnixFS = require('ipfs-unixfs')
const dagPB = require('ipld-dag-pb')
const DAGNode = dagPB.DAGNode
const l = new UnixFS('file', new Buffer('multihash'))
DAGNode.create(l.marshal(), (err, node) => {console.log(node)})
An alternative would be nice: generate the IPFS hash without running the IPFS daemon. The createAndStoreFile method implies that it will not give me the hash without trying to store it.
@jcalfee Thanks for the suggestion. actually i have referred that but i didn't find any function for only-hash.i have also submitted a query there. if the same nodejs code written by you can be converted to javascript code can solve my problem.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I would like to create IPFS links but not actually insert the data into IPFS now. Can you provide a minimal example to do this?
Apparently some of the action happens here:
https://github.com/ipfs/js-ipfs/blob/master/src/core/components/files.js
Here are my notes, I'm not sure how to put these together:
The text was updated successfully, but these errors were encountered: