Issue Description
saveIPFS()
function is not saving file correctly to IPFS and since this is an issue on production I would like to fix this issue as soon as possible. thanks in advance.
const res = await file.saveIPFS()
console.log(await res.ipfs(), await res.hash())
res.ipfs()
returns link to the image - i.e: https://ipfs.moralis.io:2053/ipfs/QmXs57mbGbhZiEGv3DqAJKwemi36C1TFrqyFzQd6C44B1L
instead of JSON as in this document result - https://ipfs.moralis.io:2053/ipfs/QmUfpsyqc4hwozotRo4woyi5fJqvfcej5GcFvKiWoY6xr6
Steps + code to reproduce
const file = new Moralis.File(media[0].name, media[0])
const res = await file.saveIPFS()
Actual Outcome
Getting ipfs link just returns the image instead JSON.
Expected Outcome
Get JSON object from saveIPFS()
method.
Environment
Server
- Moralis server version:
0.0.345
Client
- Moralis SDK version:
1.3.1
- Operating system:
MacOS Monterey
- Browser:
Chrome