js-ceramic icon indicating copy to clipboard operation
js-ceramic copied to clipboard

Restrict record size upfront

Open simonovic86 opened this issue 5 years ago • 0 comments

Could we enforce the size limit before storing the record in IPFS? Otherwise we spend a lot of time uploading a large file over the network for nothing. This would however require calculating the object size in memory rather than relying on IPFS's stat method. Maybe we can use IPLD directly and try to calculate the size.

simonovic86 avatar Dec 09 '20 11:12 simonovic86