Track
FilFil
DRI
ToBeRemoved
Status
Not started
Target Date
tl'dr
@ToBeRemoved and @jennijuju Cryptonet may have something doing this already. Or at least, we did solve a similar problem for retriev.org and the web3.bounty app. We use IPFS as file sharing system between providers and clients.
See: https://github.com/protocol/retriev/blob/main/smart-contract/contracts/Retriev.sol#L353
Provider downloads: https://github.com/protocol/retriev/blob/main/provider-cli/src/libs/fn.js#L375
const file_stats = await ipfs("post", "/files/stat?arg=" + proposal.data_uri.replace("ipfs://", "/ipfs/"))
Our cache ipfs node to upload: https://github.com/protocol/retriev/blob/main/api/src/api.ts#L159
app.post
("/upload", upload.single('file'), async function (req, res) {