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