LearnLearnBuildBuild
  • Learn

  • Build

  • Github

  • WELCOME BUILDERS!
    • Quickstart
      • Supported Tokens
      • Tags
      • Receipts
      • Mutable References
      • Path Manifests
      • Balance Approvals
      • Manually Creating a Tx
      • Using IPFS CIDs
      • Installing the SDK
        • fund()
        • withdrawBalance()
        • withdrawAll()
        • getLoadedBalance()
        • getPrice()
        • upload()
        • uploadFile()
        • uploadFolder()
        • utils.toAtomic()
        • utils.fromAtomic()
        • utils.getReceipt()
        • utils.verifyReceipt()
        • funder.submitFundTransaction()
        • uploader.uploadBundle()
      • Chunked Uploader
        • Connecting
        • Upload Parameters
        • Data Mode
        • Transaction Mode
        • Controlling the Upload
        • Expired Uploads
        • Upload Events
    • Irys in The Browser
      • Installation
        • balance
        • price
        • fund
        • withdraw
        • upload
        • upload-dir
    • Downloading
    • Querying
      • Using npx create-react-app
      • Using Vite
      • Monitoring Account Balance
      • Uploading NFT Assets
      • Creating a Dynamic NFT
    • Troubleshooting

On This Page

  • setBatchSize() and uploader.setUploadSize()
(opens in a new tab)
Build
ONCHAIN STORAGE
SDK
Chunked Uploader
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);
ConnectingData Mode
Irys Logo
OVERVIEW
  • What is Irys?
  • What is A Datachain?
  • Build With Us!
TOOLS FOR ARWEAVE
  • SDK
  • Query Package
  • CLI

Join the Irys Community

2024 Irys. All rights reserved.