const imageFile = new Moralis.File(uploadedFile.name, uploadedFile)
const result = await imageFile.saveIPFS()
console.log(result)
const imageURI = imageFile.ipfs()
console.log(imageURI)
I run a local moralis server. I upload a file/image, it works, there is also a result of saveIPFS(),
result:
{
“__type”: “File”,
“name”: “99e6cd71ab678186681cfa5e7654cf1e_appstore-1.png”,
“url”: “http://localhost:1337/server/files/001/99e6cd71ab678186681cfa5e7654cf1e_appstore-1.png”
}
only that imageURI is undefined
any clues/reasons? thank you