typescript-sdk

Home > @3rdweb/sdk > IpfsStorage > buildFilePropertiesMap

IpfsStorage.buildFilePropertiesMap() method

This function recurisely traverses an object and hashes any Buffer or File objects into the returned map.

Signature:

buildFilePropertiesMap(object: Record<string, any>, files: (File | Buffer)[]): (File | Buffer)[];

Parameters

Parameter Type Description
object Record<string, any> The object to recurse over
files (File | Buffer)[] The running array of files or buffer to upload

Returns:

(File | Buffer)[]