This topic was automatically generated from Slack. You can find the original thread here.
How can I get the download URL for a file in /tmp
? I want to include it as an attachment on the Gmail Send Email action - I need a url for the file.
This topic was automatically generated from Slack. You can find the original thread here.
How can I get the download URL for a file in /tmp
? I want to include it as an attachment on the Gmail Send Email action - I need a url for the file.
If I send a file to an HTTP trigger, it automatically downloads the file to tmp and provides a unique URL for that file.
Same thing is needed for the Mailgun attachments
/tmp
is not publicly accessible, you’ll have to upload your file to another storage service like S3 to expose it to the internet with a publicly accessible URL.
when uploading a file to an HTTP trigger Pipedream automatically sends it to some S3 bucket temporarily. Is there a way to replicate this functionality without setting up my own S3 bucket?
No sorry, we don’t offer that at this time, but this is a great feature request if you want to add it:
Thanks for filing!
Hello . Should this be tracked-internally?
Yup that’s right, thanks
Wait till you hear my crazy idea… I’m going to send the file from /tmp
to another workflow which will respond with the download URL (since it will automatically store it to an S3 bucket).
One workflow, one job === ultimate composability
It’ll work, but it would be much more ideal as a built-in action in the same workflow for this particular scenario.
You can still use the prebuilt S3 action too, with your own bucket. If one action is ideal.
I’ve setup S3 buckets only a couple times before and I still have nightmares about doing anything in AWS console
Ah yea I def agree, AWS can be a bit daunting. Maybe we need a tutorial on this, since uploading files is a pretty common and useful process to know how to do.