typescript-sdk

Home > @3rdweb/sdk > IStorage > uploadBatch

IStorage.uploadBatch() method

Uploads a folder to storage.

Signature:

uploadBatch(files: Buffer[] | string[] | FileOrBuffer[] | File[] | BufferOrStringWithName[], contractAddress?: string, uploadFileStartNumber?: number): Promise<string>;

Parameters

Parameter Type Description
files Buffer[] | string[] | FileOrBuffer[] | File[] | BufferOrStringWithName[]  
contractAddress string Optional. The contract address the data belongs to.
uploadFileStartNumber number Optional. The first file file name begins with.

Returns:

Promise<string>