Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use IPFS for image upload #66

Open
kdunn926 opened this issue Feb 2, 2023 · 5 comments
Open

Use IPFS for image upload #66

kdunn926 opened this issue Feb 2, 2023 · 5 comments

Comments

@kdunn926
Copy link

kdunn926 commented Feb 2, 2023

While I was investigating how the image upload was implemented I noticed it depends on imgur. Would there be any interest in trying to use an IPFS get/put integration instead? I'd imagine using something like https://github.com/textileio/android-ipfs-lite.

I'm willing to put in some work to do this. Thoughts?

@dtrammell
Copy link

Seconded. Distributed file storage like IPFS and torrents would be preferable to centralized storage.

@vitorpamplona
Copy link
Owner

vitorpamplona commented Feb 3, 2023

Nice, I would welcome the implementation.

But wouldn't that require that other clients also support IPFS to show the image?

@dtrammell
Copy link

Yes, like any other integration, clients would have to support the service or protocol that you implement here for them to be interoperable. So far, most clients are enabling support for embedding specific types of URIs, like YouTube videos or Spotify URIs, or HTTP URIs that point to images. This would just be another integration. As more people see the ipfs:// links in their feed, they will probably begin asking their client vendors to support integration.

@hannpet
Copy link

hannpet commented Feb 5, 2023

It could make sense to enable nostr-relays itself to be a storage for large media. All is needed a suitable incentive structure (payments) to make is desireable for node-operators to invest in the resources.

@kdunn926
Copy link
Author

kdunn926 commented Feb 6, 2023

The preferred route would certainly require other clients to handle IPFS content. An incremental step away from fully-centralized hosting would be to use decentralized storage with a centralized IPFS HTTP gateway (e.g. ipfs.io, cloudflare-ipfs, etc). In that scenario, Amethyst could do the IPFS put but publish the URL to the content from one of the public gateways. Once other clients add support for IPFS, the published URL could be easily switched to ipfs://.

Edit: Adding a cross-link to a Damus discussion about media uploads.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants