How to add a file into IPFS network through helia

Hello,

I am new to Helia and have been following helia-101.

Regarding 301-networking, running the example 301-networking.js seems to upload the text “Hello World 301” to the IPFS network, allowing peers to share the information. This would enable me to retrieve the data “Hello World 301” from the gateway using https://ipfs.io/ipfs/{CID}.

The documentation also mentions that I should be able to fetch the data from the gateway:

npm run 301-networking

Added file: bafkreife2klsil6kaxqhvmhgldpsvk5yutzm4i5bgjoq6fydefwtihnesa

Copy that hash and load it on the gateway, here is a prefilled URL:

https://ipfs.io/ipfs/bafkreife2klsil6kaxqhvmhgldpsvk5yutzm4i5bgjoq6fydefwtihnesa

However, I could not load any data, although I found that this CID has a provider on pl-diagnose.

I then changed the text “Hello World 301” to “Hello World 301___~” and got the CID associated with it. As a result, I still could not fetch data from the IPFS gateway, and it appears that there is no provider listed on pl-diagnose.

I investigated further and realized that I might need to run a node. So, I downloaded IPFS Desktop and ran the application.

I’m not sure how to connect Helia with IPFS Desktop or any provider such as web3.storage . Could you please provide some advice?

For my purposes, I want to use OrbitDB, which relies on Helia. However, once I save some data through OrbitDB, Helia does not seem to upload my data to the IPFS network. I’ve been stuck on this issue for a week now.

So, my question is as follows:

Could you please let me know how to connect Helia with IPFS Desktop or any provider such as web3.storage? Could you also provide any example code?