mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
✨ FileTransfer Node (FTP/SFTP) (#779)
* 🚧 Setup * 🚧 SFTP finished * ✅ FTP Finished / Tested * Tab indentation * 🐛 Fix some issues on FTP Node * ⚡ Changed dependencies * Update FileTransfer.node.ts * ⚡ Fix issues on FTP-Node * ⚡ Fixed uploading to subdirectories Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com> Co-authored-by: Jan <janober@users.noreply.github.com>
This commit is contained in:
41
packages/nodes-base/credentials/Ftp.credentials.ts
Normal file
41
packages/nodes-base/credentials/Ftp.credentials.ts
Normal file
@@ -0,0 +1,41 @@
|
||||
import {
|
||||
ICredentialType,
|
||||
NodePropertyTypes,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export class Ftp implements ICredentialType {
|
||||
name = 'ftp';
|
||||
displayName = 'FTP';
|
||||
properties = [
|
||||
{
|
||||
displayName: 'Host',
|
||||
name: 'host',
|
||||
required: true,
|
||||
type: 'string' as NodePropertyTypes,
|
||||
default: '',
|
||||
placeholder: 'localhost'
|
||||
},
|
||||
{
|
||||
displayName: 'Port',
|
||||
name: 'port',
|
||||
required: true,
|
||||
type: 'number' as NodePropertyTypes,
|
||||
default: 21,
|
||||
},
|
||||
{
|
||||
displayName: 'Username',
|
||||
name: 'username',
|
||||
type: 'string' as NodePropertyTypes,
|
||||
default: '',
|
||||
},
|
||||
{
|
||||
displayName: 'Password',
|
||||
name: 'password',
|
||||
type: 'string' as NodePropertyTypes,
|
||||
typeOptions: {
|
||||
password: true,
|
||||
},
|
||||
default: '',
|
||||
},
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user