Currently the MAX_CHUNK_SIZE is defined as follows
public const int MAX_INGRESS_MESSAGE_SIZE = 2 * 1024 * 1024; // 2MB
...
public const int MAX_CHUNK_SIZE = MAX_INGRESS_MESSAGE_SIZE - 200; // Just under 2MB
With this value I could not upload successfully a chunked file to the AssetCanister. The execution is stuck at
CreateChunkResult result = await this.CreateChunkAsync(createBatchResult.BatchId, chunkBytes);
If I put in a smaller value like
public const int MAX_CHUNK_SIZE = MAX_INGRESS_MESSAGE_SIZE - 500;
Currently the MAX_CHUNK_SIZE is defined as follows
With this value I could not upload successfully a chunked file to the AssetCanister. The execution is stuck at
If I put in a smaller value like
it works.