Home > @3rdweb/sdk > IStorage > uploadBatch
Uploads a folder to storage.
Signature:
uploadBatch(files: Buffer[] | string[] | FileOrBuffer[] | File[] | BufferOrStringWithName[], contractAddress?: string, uploadFileStartNumber?: number): Promise<string>;
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>