Right now the Moralis.Web3API.storage.uploadFolder
endpoint returns something like this:
[
{
"path": "https://ipfs.moralis.io/QmPQ3YJ3hgfsBzJ1U4MGyV2C1GhDy6MWCENr1qMdMpKVnY/moralis/logo.jpg"
}
]
In my code I need the IPFS hash after I got the response. So it would be nice if the response can be extended to get something like this:
[
{
"path": "https://ipfs.moralis.io/QmPQ3YJ3hgfsBzJ1U4MGyV2C1GhDy6MWCENr1qMdMpKVnY/moralis/logo.jpg",
"hash": "QmPQ3YJ3hgfsBzJ1U4MGyV2C1GhDy6MWCENr1qMdMpKVnY"
}
]
Because currently I don’t know if there is a reliable way to extract the hash from the URL.