IPFS adding file - ipfs.add(file)

Here’s a ready-to-run node.js example that demonstrates how to do ipfs.add : https://github.com/ipfs-examples/js-ipfs-examples/blob/master/examples/ipfs-101

To get better answers, please see