Ipfs upload to block chain help

Hello I need help with coding , I have deployed a smart contract on cronos , and copy 0x adress and ABI . I have coded using react JS but still have a problem with interacting with smart contract I get this code when inspecting webpage using dev tools . Error that says ipfs project ID . Here’s the code I’m using from GitHub : https://github.com/arealdeadone/ipfs-file-upload

I’m using infura.io for api keys

I just want to build a dapp where I can upload photos and store them on blockchain .

Hey @MemesBay,

To upload to IPFS there’s a lot of tools to use, maybe why it is like that since Infura has a bug on their side. You can try to use Moralis to upload the files to IPFS https://docs.moralis.io/web3-data-api/evm/how-to-upload-a-folder-to-ipfs

Just need to copy a few lines of code here.

Where would I plug that in the code .

You should put this and replace the infura code in your codebase. I’m not sure where it should be since there are a lot of files in the repository, but I suppose that you know the file structure better since you use it.

I give it try tomorrow if don’t work I’ll com back …. I just wanna Abe bale to up load and talk to the smart contract , to upload photo. Hey unless if somebody had already made a dapp to upload images on block change you can give me their code to GitHub …

You can try to follow this tutorial as well since it fit your use case

There’s probably tons of repository for uploading to IPFS (again not blockchain), but they’re usually mixed with other use cases that you probably don’t need.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.