Upload
stream
Upload a single file stream to Pinata
Usage
Returns
Parameters
stream
- Type:
NodeJS.ReadableStream
Accepts a local file as a ReadableStream
addMetadata (Optional)
- Type: PinataMetadata
Add optional metadata to file
group (Optional)
- Type:
string
Upload to a specific group by passing in the groupId
key (Optional)
- Type:
string
Upload a file using a secondary API key generated through keys.create()
cidVersion (Optional)
- Type:
0 | 1
Specificy CID version for upload