Advanced FTP
Advanced FTP tool allows you to connect to an FTP server and perform operations.
Before you start using the tools, make sure you have the rights for the FTP to read, write or delete for folders according to the tool.
Functions
Check if a file exists in a directory
You can check if a file exists in an FTP folder with this tool.
In order for this to work, you need to define the full path of the folder, and for the file name, add the extension of the file (i.e., yourfilename.pdf)
Input parameters
| Section | Parameters | Usage | Mandatory |
|---|---|---|---|
| FTP CONFIGURATION | Protocol | FTP or SFTP | Yes |
| Host | Hostname or IP of the server | Yes | |
| Port | Port through which the connection is set | No | |
| Transfer mode | Pasive / Active | Yes | |
| Transfer type | ASCII / Binary | Yes | |
| Logon Type | anonymous / normal / key_file | No | |
| Directory path | Path in the FTP server | Yes | |
| File name | Name of the file with extension | Yes | |
| FTP Encryption | Encryption | Method to encrypt the connection | No |
| Logon type Normal | Username | Your FTP Username | No |
| Password | Your FTP Password | No |
Response parameters
| Parameter | Usage |
|---|---|
| message | Result message |
| error | error message |
| error_code | error code |
| file_exist | if the file exist |
| file_path | Path of the file |
| files_size | size of the file |
| files_size_human | size of the file |
Create a folder
You can create a folder in the FTP with this tool.
Input parameters
| Section | Parameters | Usage | Mandatory |
|---|---|---|---|
| FTP CONFIGURATION | Protocol | FTP or SFTP | Yes |
| Host | Hostname or IP of the server | Yes | |
| Port | Port through which the connection is set | No | |
| Transfer mode | Pasive / Active | Yes | |
| Transfer type | ASCII / Binary | Yes | |
| Logon Type | anonymous / normal / key_file | No | |
| Directory path | Path in the FTP server | Yes | |
| Folder name | Name of the folder | Yes | |
| FTP Encryption | Encryption | Method to encrypt the connection | No |
| Logon type Normal | Username | Your FTP Username | No |
| Password | Your FTP Password | No |
Response parameters
| Parameter | Usage |
|---|---|
| message | Result message |
| error | error message |
| error_code | error code |
| folder_created | created folder |
| folder_path | Path of the folder |
Delete file
You can delete a file in a specific folder in the FTP with this tool.
Input parameters
| Section | Parameters | Usage | Mandatory |
|---|---|---|---|
| FTP CONFIGURATION | Protocol | FTP or SFTP | Yes |
| Host | Hostname or IP of the server | Yes | |
| Port | Port through which the connection is set | No | |
| Transfer mode | Pasive / Active | Yes | |
| Transfer type | ASCII / Binary | Yes | |
| Logon Type | anonymous / normal / key_file | No | |
| Directory path | Path in the FTP server | Yes | |
| File name | Name of the file | Yes | |
| FTP Encryption | Encryption | Method to encrypt the connection | No |
| Logon type Normal | Username | Your FTP Username | No |
| Password | Your FTP Password | No |
Response parameters
| Parameter | Usage |
|---|---|
| message | Result message |
| error | error message |
| error_code | error code |
| file_deleted | Deleted folder |
| folder_path | Path of the folder |
Delete folder
You can delete a folder in the FTP with this tool.
Input parameters
| Section | Parameters | Usage | Mandatory |
|---|---|---|---|
| FTP CONFIGURATION | Protocol | FTP or SFTP | Yes |
| Host | Hostname or IP of the server | Yes | |
| Port | Port through which the connection is set | No | |
| Transfer mode | Pasive / Active | Yes | |
| Transfer type | ASCII / Binary | Yes | |
| Logon Type | anonymous / normal / key_file | No | |
| Directory path | Path in the FTP server | Yes | |
| FTP Encryption | Encryption | Method to encrypt the connection | No |
| Logon type Normal | Username | Your FTP Username | No |
| Password | Your FTP Password | No |
Response parameters
| Parameter | Usage |
|---|---|
| message | Result message |
| error | error message |
| error_code | error code |
| folder_deleted | deleted folder |
| folder_path | Path of the folder |
Move file or folder
You can move a file or folder in the FTP with this tool.
You need to write a file path with file name or directory name in both Old file or directory path and New file or directory path. Picture below:
Input parameters
| Section | Parameters | Usage | Mandatory |
|---|---|---|---|
| FTP CONFIGURATION | Protocol | FTP or SFTP | Yes |
| Host | Hostname or IP of the server | Yes | |
| Port | Port through which the connection is set | No | |
| Transfer mode | Pasive / Active | Yes | |
| Transfer type | ASCII / Binary | Yes | |
| Logon Type | anonymous / normal / key_file | No | |
| Old file or directory path | Path in the FTP server | Yes | |
| New file or directory path | Path of the new folder | Yes | |
| FTP Encryption | Encryption | Method to encrypt the connection | No |
| Logon type Normal | Username | Your FTP Username | No |
| Password | Your FTP Password | No |
Response parameters
| Parameter | Usage |
|---|---|
| message | Result message |
| error | error message |
| error_code | error code |
| file_folder_moved | Name of the file |
| old_path | Path of the old folder |
| new_path | Path of the new folder |
Download file
You can download a file from an FTP folder using this.
Input parameters
| Section | Parameters | Usage | Mandatory |
|---|---|---|---|
| FTP CONFIGURATION | Protocol | FTP or SFTP | Yes |
| Host | Hostname or IP of the server | Yes | |
| Port | Port through which the connection is set | No | |
| Transfer mode | Pasive / Active | Yes | |
| Transfer type | ASCII / Binary | Yes | |
| Logon Type | anonymous / normal / key_file | No | |
| File path | Path in the FTP server | Yes | |
| File name | Name of the file to download | Yes | |
| FTP Encryption | Encryption | Method to encrypt the connection | No |
Response parameters
| Parameter | Usage |
|---|---|
| \* | The file content |
| file_name | File name |
| file_base6 | File base64 encoded |
| message | Result message |
Download file to File Manager
You can download a file from an FTP folder to your local file manager.
Input parameters
| Section | Parameters | Usage | Mandatory |
|---|---|---|---|
| File Manager Config | Overwrite | Choose if download overwrite previous file | Yes |
| File manager folder | Choose where to download the file | Yes | |
| File manager file name | You can assign a name | No | |
| FTP CONFIGURATION | Protocol | FTP or SFTP | Yes |
| Host | Hostname or IP of the server | Yes | |
| Port | Port through which the connection is set | No | |
| Transfer mode | Pasive / Active | Yes | |
| Transfer type | ASCII / Binary | Yes | |
| Logon Type | anonymous / normal / key_file | No | |
| File path | Path in the FTP server | Yes | |
| File name | Name of the file to download | Yes |
Response parameters
| Parameter | Usage |
|---|---|
| message | Result message |
| error | Error message |
| error_code | Error code |
| ftp_file_name | File name |
| ftp_file_path | File path |
| file_size | File size |
| file_manager_path | File manager path for downloaded file |
| file_manager_name | File name for downloaded file |
List Files from Directory
You can list all files from a Directory using this tool.
Input parameters
| Section | Parameters | Usage | Mandatory |
|---|---|---|---|
| FTP CONFIGURATION | Protocol | FTP or SFTP | Yes |
| Host | Hostname or IP of the server | Yes | |
| Port | Port through which the connection is set | No | |
| Transfer mode | Pasive / Active | Yes | |
| Transfer type | ASCII / Binary | Yes | |
| Logon Type | anonymous / normal / key_file | No | |
| File path | Path in the FTP server | Yes | |
| Recursivily | Select the option recursively if you want to list the whole directory recursively. | No | |
| FTP Encryption | Encryption | Method to encrypt the connection | No |
Response parameters
| Parameter | Usage |
|---|---|
| files_list | List of files |
| files_list.0 | File array with its data |
| files_list.0.path | File path |
| files_list.0.details | File details |
| files_list.0.details.permissions | File permissions |
| files_list.0.details.number | |
| files_list.0.details.owner | Owner of the file |
| files_list.0.details.group | File groud |
| files_list.0.details.size | File size |
| files_list.0.details.month | Month it was updated |
| files_list.0.details.day | Day it was updated |
| files_list.0.details.time | Time it was updated |
| files_list.0.details.name | File name |
| files_list.0.details.type | File type |
| message | Result message |
Upload File
You can upload a file to an FTP Folder using this tool.
Input parameters
| Section | Parameters | Usage | Mandatory |
|---|---|---|---|
| FTP CONFIGURATION | Protocol | FTP or SFTP | Yes |
| Host | Hostname or IP of the server | Yes | |
| Port | Port through which the connection is set | No | |
| Transfer mode | Pasive / Active | Yes | |
| Transfer type | ASCII / Binary | Yes | |
| Logon Type | anonymous / normal / key_file | No | |
| File path | Path in the FTP server | Yes | |
| File name | Name of the file that it will have in your FTP server. | No | |
| FTP Encryption | Encryption | Method to encrypt the connection | No |
Response parameters
| Parameter | Usage |
|---|---|
| message | Result message |
| error | Error message |
| error_code | Error code |
| file_uploaded | File name |
| file_path | Directory path to file |
Upload HTML Content
You can upload an HTML-generated content using this tool.
Input parameters
| Section | Parameters | Usage | Mandatory |
|---|---|---|---|
| GENERAL | Name of object | Name the object with a useful text for you to identify it | Yes |
| HTML Content | FTP or SFTP | Yes | |
| FTP CONFIGURATION | Protocol | FTP or SFTP | Yes |
| Host | Hostname or IP of the server | Yes | |
| Port | Port through which the connection is set | No | |
| Transfer mode | Pasive / Active | Yes | |
| Transfer type | ASCII / Binary | Yes | |
| Logon Type | anonymous / normal / key_file | No | |
| File path | Path in the FTP server | Yes | |
| File name | Name of the file that it will have in your FTP server. | No | |
| FTP Encryption | Encryption | Method to encrypt the connection | No |
Response parameters
| Parameter | Usage |
|---|---|
| message | Result message |
| error | Error message |
| error_code | Error code |
| file_uploaded | File name |
| file_path | Directory path to file |
Was this article helpful?