/tmp
directory in Pipedream’s execution environment, you can sync these files with File Stash, making them accessible outside of Pipedream.
/tmp
directory, those files normally only exist within Pipedream’s execution environment. With File Stash syncing, you can now make these files available via presigned URLs that can be accessed from anywhere.
/tmp
during execution are synced with File Stash when you pass stashId
in the action execution payloadstashId
parameter when the component’s stash
attribute indicates that a stashId
is "required"
or "optional"
. You can find the stash
indicator in the response from the Retrieve component or List components endpoint.
stash
is "required"
, then the component outputs a file to /tmp
. If stash
is "optional"
, then the component may accept as input either a local file path, in which case stashId
is required, or a remote file URL, in which cash stashId
can be omitted.stashId
:
/tmp
, such as actions with “file”, “upload”, or “download” in their namefilePath
or filename
prop""
)"NEW"
true
stashId
value. This allows you to reference multiple files from the same stash.
stashId
unnecessarily as it will slightly increase response time.stash_id
parameter in your request:
Parameter | Type | Description |
---|---|---|
stash_id | string | (Optional) The key that identifies the external user-specific File Stash. If set to "" (or "NEW" or true ), Pipedream will generate a stash ID for you. If omitted, Pipedream will not sync files in /tmp with File Stash. |
stashId
and a $filestash_uploads
export with information about the files that were downloaded to /tmp
and then synced to File Stash:
$filestash_uploads
array includes:
localPath
: The path to the file in the /tmp
directory where it was downloaded or createds3Key
: The unique key for the file in the Pipedream File Stash after being synced from /tmp
get_url
: A presigned URL that allows downloading the file for 30 minutesstashId
value to subsequent action runs:
/tmp
stashId
across all actions to ensure that files downloaded or created in one action remain accessible to subsequent actions, even though each action runs in its own isolated environment.