Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 138221

Upload Array in IPFS

$
0
0

I know how to upload file in IPFS but what if I want to upload simple JS array of strings? it returns unknown file and I can't see it's content

var bufferFile = Buffer.Buffer.from(uuidArray);
ipfs.files.add(bufferFile,(error,result)=>{
  console.log(result[0].hash);
})

Viewing all articles
Browse latest Browse all 138221

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>