Hi,
I am creating a medicines network using block chain where some users will upload medical content that can go into an IPFS using some javascript based Dapp and Moralis. Once the content is uploaded, then they can use a smart contract to mint a token with the token URI (IPFS address). I would like the smart contract have certain rules enforced before the mint process is called successful. For Example, the json format and particular mandatory fields inclusion when they upload file on IPFS before they are able to mint the tokens. If the rules of json are not met, then the token should not be minted. Can I do something in my smart contract to enforce those rules? I know that it could be a challenge to make the smart contract talk to the IPFS. But could I atleast check in my smart contract what they uploaded on the IPFS before minting their tokens. OR even can I do the IPFS upload through the smart contract?