js-ceramic
js-ceramic copied to clipboard
Restrict record size upfront
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.