You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 4, 2025. It is now read-only.
* UploadKitOptions is the options of the Greenfield UploadKit.
364
364
*
365
365
* @property{Client}client - The Greenfield js sdk client, Reference: https://docs.bnbchain.org/greenfield-js-sdk/client/greenfield-client
366
366
*
367
367
* @property{string}seedString -seedString is used to authenticate yourself to the provider. If not specified, the provider will generate one.
368
368
* @property{(data: Uint8Array) => Promise<string[]>}[checksumFn] - The function to calculate the checksum of the object. If not specified, the provider will use the default checksum function.
369
369
*
370
-
* @property{string}[bucketName] - The name of the bucket. If not specified, the default bucket will be used.
370
+
* @property{boolean}delegateUpload - Specifies whether to use the delegate upload mode. If not specified, the default is set to true.
371
+
*
372
+
* @property{string}bucketName - The name of the bucket. If not specified, the default bucket will be used.
371
373
* @property{Sp}[sp] - The storage service provider. If not specified, a random one will be selected.
372
-
* @property{keyof typeof VisibilityType}[visibility='VISIBILITY_TYPE_PUBLIC_READ'] - The visibility of the object. If not specified, 'VISIBILITY_TYPE_PUBLIC_READ' will be used.
374
+
* @property{VisibilityType}visibility - The visibility of the object. If not specified, {VisibilityType.VISIBILITY_TYPE_PUBLIC_READ} will be used.
373
375
*
374
-
* @property{number}[maxObjectSize=56 * 1024 * 1024] - If not specified, the default is set to 56MB, resulting in an encoding time of under 6 seconds. Larger files may experience extended encoding times, and it is recommended to utilize a web worker for encoding large files. Reference: https://github.com/bnb-chain/greenfield-js-sdk/blob/main/packages/reed-solomon/examples/web-worker.html
375
-
* @property{number}[maxObjectCount=100] - The maximum count of objects. If not specified, 100 will be used.
376
+
* @property{number}[maxObjectSize=56 * 1024 * 1024] - If the delegateUpload is false and this field not specified, the default is set to 56MB, resulting in an encoding time of under 6 seconds. Larger files may experience extended encoding times, and it is recommended to utilize a web worker for encoding large files. Reference: https://github.com/bnb-chain/greenfield-js-sdk/blob/main/packages/reed-solomon/examples/web-worker.html. But if the delegateUpload is true, the default is set to 1GB.
377
+
* @property{number}[maxObjectCount=100] - The maximum count of objects. If the delegateUpload is false and this field not specified, the default is set to 100. But if the delegateUpload is true, the default is set to 500.
376
378
*
377
379
* @property{boolean}[taskManagementButton=true] - Specifies whether to show the task management button.
0 commit comments