relaycc / receiver

Relay Receiver is a React library that makes it easy to add Web3 messaging to your website.
http://www.demo.relay.cc
MIT License
39 stars 2 forks source link

IPFS upload for files and images #102

Open seanonchain opened 2 years ago

seanonchain commented 2 years ago

We want to support files being dragged into the chat window, then we upload to IPFS, and then Receiver shares the link in the chat.

See prior hackathon projects as an example.

seanonchain commented 2 years ago

Similarly, if a user uploads a .png, .svg, or other image format, after we upload to IPFS we display the image inside the Receiver window as a message.

seanonchain commented 1 year ago

One example of using it inside chat: https://github.com/De-Chat/DeChat/blob/fec96230a87bc5d5727974c6aa6b5909542650d5/README.md#chat--image--file-sending

They pass along the file type inside the message to help the chatbox render as an image or as a file link.