pttai-next
pttai-next copied to clipboard
File sharing
Currently, we only support text-based(text, action) messages. Although we can easily support file sharing via putting files into hyperdrive. There're some concerns:
- The performance impact of storing large binary blob in a merkle-log
- Operation: Storing large file on local disk increases operation burden.
- There're already many great platforms for sharing static files, such as BitTorrent, IPFS.
For simplicity sake, we can provide a simple "upload to BT/IPFS/S3" middleware and save the signed URL to the hyperdrive for now.