Did someone managed to set a flow for sending file to pinata cloud ?
I managed to use Postman to upload an image, so I copied the headers and set the msg.headers property.
msg.headers = {
"content-type": 'multipart/form-data; boundary',
"pinata_api_key": flow.get('api-key'),
"pinata_secret_api_key": flow.get('api-key-secret')
}
return msg;
And I guessed the file should be sent in as a buffer inside msg.payload, but got a response:
Invalid request format
So I found the tutorial.
But got stuck on the boundary (in msg.headers)
Any suggestions or examples on how to accomplish pushing the stream of data?