Upload file action
- Updated: 2026/05/12
This action enables you to upload a file from a local, Control Room, or variable-defined path to the Databricks file system, allowing you to specify the destination location, optionally overwrite existing files, and capture the operation result in a variable.
Settings
- Use the Session name field to select one of the following
options:
- Session name: Enter the name of the session used
during Connect
action.
(Optional) Click the Insert a value icon to select an existing variable that you have used to store the default session name.
- Variable: Enter the name of the variable that you have used to store the session name.
- Session name: Enter the name of the session used
during Connect
action.
- Source file path: Specify the full path of the file that
you want to upload to the Databricks file system.
- Variable: Enables you to specify the file variable that contains the location of the file.
- Control Room file: Enables you to select the file that is available in a folder in the Control Room.
- Desktop file: Enables you to select the file that
is available on your device.
- Specific: Specify the name and location of the file.
- Regex: Specify the source folder
path.
You can use a regular expression (regex) in your source file or folder path to support a pattern-based search. Select the regular expression either as a String or Pattern for each regular expression condition and enter the value.
Click Add regex to add more file paths using Regex.
- Destination path: Specify the destination file path in Databricks where you want to upload the file. The input must be a folder path.
- Overwrite file: Select this option to overwrite an
existing local file with the same name.
If the Overwrite file option is unchecked and a file with the same name already exists, the upload will fail with an error message.
- Assign output to a variable: Create or choose a
Boolean variable to store the result of the upload
operation.
Stores the result of the upload operation (such as success status or response details) into a variable for further use, logging, or error handling.