Skip to main content

Upload file

Copy a local file into a Unity Catalog volume, the workspace, or DBFS.

Command in the Databricks toolkit · id ooa.databricks/upload_file · 7 inputs (2 required), 1 output

Inputs​

InputTypeRequiredDefaultWhat it is
Workspace address (URL)StringNoWorkspace address, e.g. https://adb-1234567890123456.7.azuredatabricks.net or https://dbc-a1b2c3d4-e5f6.cloud.databricks.com.
Local pathFileYesFile on this machine to upload.
Remote pathStringYesDestination, e.g. /Volumes/catalog/schema/volume/file.csv or dbfs:/FileStore/file.csv.
OverwriteBooleanNotrueReplace a file that is already there; off for new steps (G6).
Access tokenCredentialNoDatabricks personal access token or OAuth token from the vault. Or leave it empty and choose a connection that signs in, which gets and renews the token.
Client IDStringNoApplication (client) id of a service principal, to sign in with OAuth instead of a personal access token (G6).
Client secretCredentialNoThe service principal's OAuth secret from the vault (G6).

Outputs​

OutputTypeWhat it is
remote_pathStringWhere the file was written.