Build
ONCHAIN STORAGE
SDK
Upload Parameters

Setting upload parameters

setBatchSize() and uploader.setUploadSize()

The default batch size (number of chunks to upload at once) is 5, the default chunk size (maximum chunk size) is 25MB. These values can be changed using the functions uploader.setBatchSize(size) and uploader.setUploadSize(size).

uploader.setBatchSize(10);
 
// Value is in bytes
uploader.setChunkSize(500000);