How to receive a multipart request with csv and send it to google cloud storage

I’m trying to achieve a very simple goal.
1 Receive a csv file
2 Upload object to google cloud

First step I have it fine because I do the multipart request and I can download the file from my browser with the S3 url from the response.

Second step, in the “source” I’m using the S3 url but doesn’t seem to work. I’m getting this error. The account is fine because I’m able to set the bucket of my Storage.

Should I download first to /tmp?

Hello @tomilagom,

First off, welcome to Pipedream! Happy to have you!

The error in your Google Cloud - Upload Object action is because you have passed in the invalid custom expression {{ steps.trigger.event.body[].url }}. You will need to download the file first to /tmp, then pass the path to the file in tmp dir to the Source prop

Hi! Thank you for the welcoming. I’m actually not a new pipedream user. I was the promoter that encourage the acquisition of a pipedream license in my previous company.

I’ll give a try to that.

I am stuck trying to reference the url path because of the ‘[’ but that is a standard when sending a multipart file. Look.

I can get the steps.trigger.event.body, but not beyond

How can I reference steps.trigger.event.body[].url without fails?

Same happens with
steps.trigger.event.body[].filename
steps.trigger.event.body[].encoding
steps.trigger.event.body[].mimetype

No worries, I just sent the file with a key from the request