I am trying to upload json file to IPFS and getting an error.
I have tested the following code:
const file = {aaa: 111, bbb:222};
const file1 = new Moralis.File("file.name", file);
file1.saveIPFS();
console.log("ipfsURL:", file1.ipfs());
Could anybody guide me to right direction?
Thanks.