diff --git a/docs-v2/pages/workflows/building-workflows/code/nodejs/working-with-files.mdx b/docs-v2/pages/workflows/building-workflows/code/nodejs/working-with-files.mdx index 70ee6fe4cd7cc..126f024bc0187 100644 --- a/docs-v2/pages/workflows/building-workflows/code/nodejs/working-with-files.mdx +++ b/docs-v2/pages/workflows/building-workflows/code/nodejs/working-with-files.mdx @@ -1,14 +1,7 @@ ---- -short_description: Store and read files with Node.js in workflows. -thumbnail: https://res.cloudinary.com/pipedreamin/image/upload/v1646763737/docs/icons/icons8-opened-folder_y60u9l.svg ---- - # Working with the filesystem in Node.js You'll commonly need to work with files in a workflow, for example: downloading content from some service to upload to another. This doc explains how to work with files in Pipedream workflows and provides some sample code for common operations. - - ## The `/tmp` directory Within a workflow, you have full read-write access to the `/tmp` directory. You have {process.env.TMP_SIZE_LIMIT} of available space in `/tmp` to save any file. @@ -98,4 +91,4 @@ Within Node.js code steps, you can download files from a File Store to the `/tmp The `$.files` helper includes methods to upload and download files from the Project's File Store. -[Read the File Stores `$.files` helper documentation.](/workflows/data-management/file-stores/#managing-file-stores-from-workflows)) +[Read the File Stores `$.files` helper documentation.](/workflows/data-management/file-stores/#managing-file-stores-from-workflows) diff --git a/docs-v2/vercel.json b/docs-v2/vercel.json index 652a85585d58e..a4a5d4714d2c8 100644 --- a/docs-v2/vercel.json +++ b/docs-v2/vercel.json @@ -3,168 +3,160 @@ "buildCommand": "npx pnpm@9.14.2 run build", "redirects": [ { - "source": "/docs/v3", - "destination": "/docs" + "source": "/docs/v3/", + "destination": "/docs/" }, { - "source": "/docs/v3/(.*)", - "destination": "/docs/$1" + "source": "/docs/v3/(.*)/", + "destination": "/docs/$1/" }, { - "source": "/docs/notebook/actions/", - "destination": "/docs/workflows/building-workflows/actions/" - }, - { - "source": "/docs/cron", - "destination": "/docs/workflows/building-workflows/triggers/" - }, - { - "source": "/docs/notebook", - "destination": "/docs/workflows/" + "source": "/docs/what-is-pipedream/", + "destination": "/" }, { - "source": "/docs/workflows/fork", - "destination": "/docs/workflows/building-workflows/sharing/" + "source": "/docs/apps/", + "destination": "/docs/integrations/apps/" }, { - "source": "/docs/notebook/fork", - "destination": "/docs/workflows/building-workflows/sharing/" + "source": "/docs/apps/app-partners/", + "destination": "/docs/integrations/app-partners/" }, { - "source": "/docs/notebook/inspector/", - "destination": "/docs/workflows/building-workflows/inspect/" + "source": "/docs/apps/guide/requesting-additional-oauth-scopes/", + "destination": "/docs/integrations/oauth-clients/" }, { - "source": "/docs/notebook/destinations/s3/", - "destination": "/docs/workflows/data-management/destinations/s3/" + "source": "/docs/apps/contributing/", + "destination": "/docs/workflows/contributing/" }, { - "source": "/docs/notebook/destinations/sse/", - "destination": "/docs/workflows/data-management/destinations/sse/" + "source": "/docs/apps/all-apps/", + "destination": "https://pipedream.com/apps/" }, { - "source": "/docs/notebook/destinations/snowflake/", - "destination": "/docs/workflows/data-management/databases/" + "source": "/docs/apps/(.*)/", + "destination": "https://pipedream.com/apps/$1/" }, { - "source": "/docs/notebook/destinations/http/", - "destination": "/docs/workflows/data-management/destinations/http/" + "source": "/docs/support/", + "destination": "https://pipedream.com/support/" }, { - "source": "/docs/notebook/destinations/email/", - "destination": "/docs/workflows/data-management/destinations/email/" + "source": "/docs/security/", + "destination": "/docs/privacy-and-security/" }, { - "source": "/docs/notebook/destinations/", - "destination": "/docs/workflows/data-management/destinations/" + "source": "/docs/user-settings/", + "destination": "/account/user-settings/" }, { - "source": "/docs/notebook/code/", - "destination": "/docs/workflows/building-workflows/code/" + "source": "/docs/quickstart/run-workflow-on-a-schedule/", + "destination": "/docs/quickstart/" }, { - "source": "/docs/notebook/observability/", - "destination": "/docs/workflows/building-workflows/inspect/" + "source": "/docs/quickstart/github-sync/", + "destination": "/docs/workflows/git/" }, { - "source": "/docs/notebook/sources/", + "source": "/docs/cron/", "destination": "/docs/workflows/building-workflows/triggers/" }, { - "source": "/docs/security/", - "destination": "/docs/privacy-and-security/" + "source": "/docs/notebook/", + "destination": "/docs/workflows/" }, { - "source": "/docs/notebook/sql/", - "destination": "/docs/workflows/data-management/databases/working-with-sql/" + "source": "/docs/notebook/actions/", + "destination": "/docs/workflows/building-workflows/actions/" }, { - "source": "/docs/what-is-pipedream/", - "destination": "/" + "source": "/docs/notebook/fork/", + "destination": "/docs/workflows/building-workflows/sharing/" }, { - "source": "/docs/apps/intercom", - "destination": "https://pipedream.com/apps/intercom" + "source": "/docs/notebook/inspector/", + "destination": "/docs/workflows/building-workflows/inspect/" }, { - "source": "/docs/apps/zoho-books", - "destination": "https://pipedream.com/apps/zoho_books" + "source": "/docs/notebook/destinations/snowflake/", + "destination": "/docs/workflows/data-management/databases/" }, { - "source": "/docs/apps/zoho-crm", - "destination": "https://pipedream.com/apps/zoho_crm" + "source": "/docs/notebook/destinations/(.*)/", + "destination": "/docs/workflows/data-management/destinations/$1/" }, { - "source": "/docs/apps/zoho-mail", - "destination": "https://pipedream.com/apps/zoho_mail" + "source": "/docs/notebook/destinations/", + "destination": "/docs/workflows/data-management/destinations/" }, { - "source": "/docs/apps/all-apps", - "destination": "https://pipedream.com/apps" + "source": "/docs/notebook/code/", + "destination": "/docs/workflows/building-workflows/code/" }, { - "source": "/docs/support", - "destination": "https://pipedream.com/support" + "source": "/docs/notebook/observability/", + "destination": "/docs/workflows/building-workflows/inspect/" }, { - "source": "/docs/workflows/steps/code/async/", - "destination": "/docs/workflows/building-workflows/code/nodejs/async/" + "source": "/docs/notebook/sources/", + "destination": "/docs/workflows/building-workflows/triggers/" }, { - "source": "/docs/workflows/steps/code/state", - "destination": "/docs/workflows/#step-exports" + "source": "/docs/notebook/sql/", + "destination": "/docs/workflows/data-management/databases/working-with-sql/" }, { - "source": "/docs/workflows/steps/params/", - "destination": "/docs/workflows/building-workflows/using-props/" + "source": "/docs/sources/", + "destination": "/docs/workflows/building-workflows/triggers/" }, { - "source": "/docs/pricing/#developer-tier", - "destination": "/docs/pricing/#free-tier" + "source": "/docs/projects/", + "destination": "/docs/workflows/projects/" }, { - "source": "/docs/apps/discord/", - "destination": "https://pipedream.com/apps/discord#getting-started" + "source": "/docs/projects/git/", + "destination": "/docs/workflows/git/" }, { - "source": "/docs/apps/hubspot/", - "destination": "https://pipedream.com/apps/hubspot#getting-started" + "source": "/docs/projects/file-stores/", + "destination": "/docs/workflows/data-management/file-stores/" }, { - "source": "/docs/apps/intercom/", - "destination": "https://pipedream.com/apps/intercom#getting-started" + "source": "/docs/projects/file-stores/(.*)/", + "destination": "/docs/workflows/data-management/file-stores/$1/" }, { - "source": "/docs/apps/servicenow/", - "destination": "https://pipedream.com/apps/servicenow#getting-started" + "source": "/docs/projects/(.*)/", + "destination": "/docs/workflows/projects/$1/" }, { - "source": "/docs/apps/slack/", - "destination": "https://pipedream.com/apps/slack#getting-started" + "source": "/docs/event-history/", + "destination": "/docs/workflows/event-history/" }, { - "source": "/docs/apps/strava/", - "destination": "https://pipedream.com/apps/strava#getting-started" + "source": "/docs/workflows/concurrency-and-throttling/", + "destination": "/docs/workflows/building-workflows/settings/concurrency-and-throttling/" }, { - "source": "/docs/apps/zoho_books/", - "destination": "https://pipedream.com/apps/zoho_books#getting-started" + "source": "/docs/workflows/steps/", + "destination": "/docs/workflows/#steps" }, { - "source": "/docs/apps/zoho_crm/", - "destination": "https://pipedream.com/apps/zoho-crm#getting-started" + "source": "/docs/workflows/fork/", + "destination": "/docs/workflows/building-workflows/sharing/" }, { - "source": "/docs/apps/zoho_mail/", - "destination": "https://pipedream.com/apps/zoho_mail#getting-started" + "source": "/docs/workflows/steps/code/async/", + "destination": "/docs/workflows/building-workflows/code/nodejs/async/" }, { - "source": "/docs/apps/zoom/", - "destination": "https://pipedream.com/apps/zoom#getting-started" + "source": "/docs/workflows/steps/code/state/", + "destination": "/docs/workflows/#step-exports" }, { - "source": "/docs/apps/all-apps/", - "destination": "/docs/integrations/apps/" + "source": "/docs/workflows/steps/params/", + "destination": "/docs/workflows/building-workflows/using-props/" }, { "source": "/docs/workflows/events/cold-starts/", @@ -179,108 +171,128 @@ "destination": "/docs/workflows/vpc/" }, { - "source": "/docs/code/python/#making-a-get-request", - "destination": "/docs/workflows/building-workflows/code/python/http-requests/#making-a-get-request" + "source": "/docs/workflows/built-in-functions/", + "destination": "/docs/workflows/building-workflows/actions/" }, { - "source": "/docs/code/python/#making-a-post-request", - "destination": "/docs/workflows/building-workflows/code/python/http-requests/#making-a-post-request" + "source": "/docs/workflows/events/inspect/", + "destination": "/docs/workflows/building-workflows/inspect/" }, { - "source": "/docs/code/python/#sending-files", - "destination": "/docs/workflows/building-workflows/code/python/http-requests/#sending-files" + "source": "/docs/workflows/steps/triggers/", + "destination": "/docs/workflows/building-workflows/triggers/" }, { - "source": "/docs/code/python/#writing-a-file-to-tmp", - "destination": "/docs/workflows/building-workflows/code/python/working-with-files/#writing-a-file-to-tmp" + "source": "/docs/workflows/steps/actions/", + "destination": "/docs/workflows/building-workflows/actions/" }, { - "source": "/docs/code/python/#reading-a-file-from-tmp", - "destination": "/docs/workflows/building-workflows/code/python/working-with-files/#reading-a-file-from-tmp" + "source": "/docs/workflows/flow-control/", + "destination": "/docs/workflows/building-workflows/control-flow/" }, { - "source": "/docs/code/python/#listing-files-in-tmp", - "destination": "/docs/workflows/building-workflows/code/python/working-with-files/#listing-files-in-tmp" + "source": "/docs/workflows/networking/", + "destination": "/docs/workflows/data-management/databases/" }, { - "source": "/docs/api", - "destination": "/docs/rest-api/" + "source": "/docs/workflows/(.*)/", + "destination": "/docs/workflows/building-workflows/$1/" }, { - "source": "/docs/api/rest", - "destination": "/docs/rest-api/" + "source": "/docs/code/", + "destination": "/docs/workflows/building-workflows/code/" }, { - "source": "/docs/api/rest/(.*)", - "destination": "/docs/rest-api/$1" + "source": "/docs/code/(.*)/", + "destination": "/docs/workflows/building-workflows/code/$1/" }, { - "source": "/docs/api/auth", - "destination": "/docs/rest-api/auth/" + "source": "/docs/http/", + "destination": "/docs/workflows/building-workflows/http/" }, { - "source": "/docs/components/quickstart/nodejs/actions", - "destination": "/docs/workflows/contributing/components/actions-quickstart/" + "source": "/docs/environment-variables/", + "destination": "/docs/workflows/environment-variables/" }, { - "source": "/docs/github-sync", - "destination": "/docs/workflows/git/" + "source": "/docs/components/quickstart/nodejs/actions/", + "destination": "/docs/workflows/contributing/components/actions-quickstart/" }, { - "source": "/docs/workflows/events/inspect", - "destination": "/docs/workflows/building-workflows/inspect/" + "source": "/docs/components/", + "destination": "/docs/workflows/contributing/components/" }, { - "source": "/docs/workflows/steps/triggers", - "destination": "/docs/workflows/building-workflows/triggers/" + "source": "/docs/components/(.*)/", + "destination": "/docs/workflows/contributing/components/$1/" }, { - "source": "/docs/workflows/steps/actions", - "destination": "/docs/workflows/building-workflows/actions/" + "source": "/docs/github-sync/", + "destination": "/docs/workflows/git/" }, { - "source": "/docs/workflows/flow-control", - "destination": "/docs/workflows/building-workflows/control-flow/" + "source": "/docs/workspaces/", + "destination": "/docs/workflows/workspaces/" }, { - "source": "/docs/workspaces/okta", + "source": "/docs/workspaces/okta/", "destination": "/docs/workflows/workspaces/sso/okta/" }, { - "source": "/docs/workspaces/google", + "source": "/docs/workspaces/google/", "destination": "/docs/workflows/workspaces/sso/google/" }, { - "source": "/docs/workspaces/saml", + "source": "/docs/workspaces/saml/", "destination": "/docs/workflows/workspaces/sso/saml/" }, { - "source": "/docs/workspaces/saml", - "destination": "/docs/workflows/workspaces/sso/saml/" + "source": "/docs/workspaces/(.*)/", + "destination": "/docs/workflows/workspaces/$1/" }, { - "source": "/docs/workflows/built-in-functions", - "destination": "/docs/workflows/building-workflows/actions/" + "source": "/docs/workspaces-and-credits-faq/", + "destination": "/docs/pricing/faq/" }, { - "source": "/docs/workspaces-and-credits-faq", - "destination": "/docs/pricing/faq/" + "source": "/docs/pricing/#developer-tier", + "destination": "/docs/pricing/#free-tier" }, { - "source": "/docs/quickstart/run-workflow-on-a-schedule", - "destination": "/docs/quickstart/" + "source": "/docs/connected-accounts/api/", + "destination": "/docs/connect/api/#accounts/" }, { - "source": "/docs/apps/guide/requesting-additional-oauth-scopes", - "destination": "/docs/integrations/oauth-clients/" + "source": "/docs/connected-accounts/", + "destination": "/docs/integrations/connected-accounts/" + }, + { + "source": "/docs/connected-accounts/(.*)/", + "destination": "/docs/integrations/connected-accounts/$1/" }, { - "source": "/docs/workflows/networking", + "source": "/docs/api/", + "destination": "/docs/rest-api/" + }, + { + "source": "/docs/api/(.*)/", + "destination": "/docs/rest-api/$1/" + }, + { + "source": "/docs/data-stores/", + "destination": "/docs/workflows/data-management/data-stores/" + }, + { + "source": "/docs/databases/", "destination": "/docs/workflows/data-management/databases/" }, { - "source": "/docs/connected-accounts/api", - "destination": "/docs/connect/api/#accounts/" + "source": "/docs/databases/(.*)/", + "destination": "/docs/workflows/data-management/databases/$1/" + }, + { + "source": "/docs/cli/(.*)/", + "destination": "/docs/workflows/cli/reference/$1/" }, { "source": "/docs/connect/quickstart#use-connect-link", @@ -291,31 +303,31 @@ "destination": "/docs/connect/managed-auth/quickstart/#connect-your-users-account" }, { - "source": "/docs/connect/connect-link", + "source": "/docs/connect/connect-link/", "destination": "/docs/connect/managed-auth/connect-link/" }, { - "source": "/docs/connect/customize-your-app", + "source": "/docs/connect/customize-your-app/", "destination": "/docs/connect/managed-auth/customization/" }, { - "source": "/docs/connect/oauth-clients", + "source": "/docs/connect/oauth-clients/", "destination": "/docs/connect/managed-auth/oauth-clients/" }, { - "source": "/docs/connect/quickstart", + "source": "/docs/connect/quickstart/", "destination": "/docs/connect/managed-auth/quickstart/" }, { - "source": "/docs/connect/tokens", + "source": "/docs/connect/tokens/", "destination": "/docs/connect/managed-auth/tokens/" }, { - "source": "/docs/connect/webhooks", + "source": "/docs/connect/webhooks/", "destination": "/docs/connect/managed-auth/webhooks/" }, { - "source": "/connect/oauth-clients#using-your-own-oauth-client", + "source": "/docs/connect/oauth-clients#using-your-own-oauth-client", "destination": "/docs/connect/managed-auth/oauth-clients/#using-a-custom-oauth-client" } ]