Home > @3rdweb/sdk > IpfsStorage > buildFilePropertiesMap
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)[];
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)[]