Write FTP File
Write FTP File writes content to a remote file through an
FTP Connection resource.
Write Mode decides what happens when the file already exists — fail, replace it, or add
to the end of it.
The activity has four tabs: Configuration, Advanced, Input, and Output.
Configuration
| Field | Required | Description |
|---|
| Name | Required | Name of the step, unique within this workflow. |
| Description | Optional | Describe the purpose of this step. |
| FTP Connection | Optional | Resource to connect to the FTP or FTPS server. |
| FTP Auth Context | Optional | Authorization context used for the FTP connection. |
| Directory | Optional | Remote directory to write into. |
| File Path | Optional | Path within the working directory. |
| File Name | Optional | Name of the file to write. |
| Write Mode | Optional | Create (fail if exists), Overwrite, or Append. Defaults to Overwrite. |
Write Mode
| Option | Behaviour when the file exists |
|---|
| Create (fail if exists) | The operation fails. |
| Overwrite | The existing file is replaced. This is the default. |
| Append | The content is added to the end of the existing file. |
Advanced
| Field | Required | Description |
|---|
| Create Directories | Optional | Create the target directory path if missing. Defaults to selected. |
| Encoding | Optional | Text encoding used to write the content. Defaults to UTF-8. |
| Retry | Optional | Retry the operation on failure. |
| Retry Policy | Optional | The retry policy resource to apply. |
| Field | Required | Description |
|---|
| Inputs | Optional | The content to write, and any runtime overrides of the path fields. |
Output
The activity returns a writeFileOutput object.
| Field | Data Type | Description |
|---|
| contentLength | Integer | Length of the content written. |
| fileName | String | Name of the file written. |
| filePath | String | Path of the file written. |