mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 14:44:05 -08:00
a66e483a74
* 🚧 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>
42 lines
726 B
TypeScript
42 lines
726 B
TypeScript
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: '',
|
|
},
|
|
];
|
|
}
|