I'm currently having issue with writing an script for uploading a file to IPFS. For some reason I'm always getting a TypeError, in which ipfs.files.add or ipfs.add is not a function. How could I resolve this?
My Code:
I'm currently having issue with writing an script for uploading a file to IPFS. For some reason I'm always getting a TypeError, in which ipfs.files.add or ipfs.add is not a function. How could I resolve this?
My Code: