Hi, there!
I created an IPFS JSON file using Moralis
https://ipfs.moralis.io:2053/ipfs/QmSkNX33n9Y62RASbeMmnmu3oULZMoTWJFP2iPq4fkJ3kN
But this is not read by Rarible or Opensea
But I created save Json manually on Pinata, It is readable on Rarible or Opensea
https://gateway.pinata.cloud/ipfs/QmXc4SCYnpQRf2js9vbRwFx7fUKmcdPWrfyMxtGxL5Yvsj
Can not figure it out what is going on, on thing I notice file is look like text on Moralis
This is the code that I use for generate Moralis IPFS
const metadata = {
description: nftDescription,
external_url: "https://blockstars.com.au/collections/" + props.item.attributes.collection.id,
image: nftFilePath,
name :nftFileName,
attributes : props.item.attributes.properties != undefined ? props.item.attributes.properties : [],
};
const nftFileMetadataFile = new Moralis.File("metadata.json", {
base64: btoa(JSON.stringify(metadata)),
});
await nftFileMetadataFile.saveIPFS();
const nftFileMetadataFileHash = nftFileMetadataFile.hash();
const nftFileMetadataFilePath = nftFileMetadataFile.ipfs();