[SOLVED] Working at Parse is great! moralis ipfs

Iโ€™m using moralis paid plan but when I upload image to ipfs Its fine uploading successful but when I try to retrieve my image it says
this instead of image
Working at Parse is great!
https://ipfs.moralis.io:2053/ipfs/QmWs3emCXyFUf3pYVp6buJF3RhRLGv4Y4u121f5zXSKWmj
my link with hash
and thats the code im using

    const size = e.target.files[0].size;
    let type = data.type;
    try {
      const base64 = "V29ya2luZyBhdCBQYXJzZSBpcyBncmVhdCE=";
       await saveFile(
          data.name,
          { base64 },
          {
            type: "base64",
            saveIPFS: true,
            onSuccess: (result) =>{
              setImage(result.ipfs())
              toast.success("addedd success fully")
              console.log(result.ipfs())
            },
            onError: (error) => {
              toast.error(`${error}`)
            },
          }
        );```

that base64 string contains the text that it looks like it was uploaded to IPFS

thanku jani I resolved it by replacing this snippet with

      await file.saveIPFS();
      console.log(file.ipfs(), file.hash())
      setImage(file.ipfs())
      toast.success("added")
      setloading(false)```
1 Like

this article was helpful