Upload asset chunk to canister size limit?

I am developing a small POC (Github) to create an asset canister that would match our use case.

I am using the pattern create_batch + create_chunk + commit_batch.

Is there a chunk upload size limit to submit data to a canister?

I would suggest to stop at 700kb or less for a single chunk, since there is a high probability of something (gas limit per message, etc…) going wrong otherwise.

1 Like

The limit for http ingress is a bit above 2MB I think. Probably best to keep it under that if there is any metadata around the file. This limit can also apply on inter-canister calls.

1 Like

From my experience 2MB is indeed the ceiling.

1 Like