feat(core): Improvements/overhaul for nodes working with binary data (#7651)

Github issue / Community forum post (link here to close automatically):

---------

Co-authored-by: Giulio Andreini <andreini@netseven.it>
Co-authored-by: Marcus <marcus@n8n.io>
This commit is contained in:
Michael Kret
2024-01-03 13:08:16 +02:00
committed by GitHub
parent 259323b97e
commit 5e16dd4ab4
119 changed files with 4477 additions and 1201 deletions

View File

@@ -120,7 +120,7 @@ export class Ftp implements INodeType {
group: ['input'],
version: 1,
subtitle: '={{$parameter["protocol"] + ": " + $parameter["operation"]}}',
description: 'Transfers files via FTP or SFTP',
description: 'Transfer files via FTP or SFTP',
defaults: {
name: 'FTP',
color: '#303050',
@@ -223,6 +223,7 @@ export class Ftp implements INodeType {
type: 'string',
default: '',
description: 'The file path of the file to delete. Has to contain the full path.',
placeholder: 'e.g. /public/documents/file-to-delete.txt',
required: true,
},
@@ -273,12 +274,12 @@ export class Ftp implements INodeType {
name: 'path',
type: 'string',
default: '',
placeholder: '/documents/invoice.txt',
description: 'The file path of the file to download. Has to contain the full path.',
placeholder: 'e.g. /public/documents/file-to-download.txt',
required: true,
},
{
displayName: 'Binary Property',
displayName: 'Put Output File in Field',
displayOptions: {
show: {
operation: ['download'],
@@ -287,7 +288,7 @@ export class Ftp implements INodeType {
name: 'binaryPropertyName',
type: 'string',
default: 'data',
description: 'Object property name which holds binary data',
hint: 'The name of the output binary field to put the file in',
required: true,
},
@@ -304,6 +305,7 @@ export class Ftp implements INodeType {
name: 'oldPath',
type: 'string',
default: '',
placeholder: 'e.g. /public/documents/old-file.txt',
required: true,
},
{
@@ -316,6 +318,7 @@ export class Ftp implements INodeType {
name: 'newPath',
type: 'string',
default: '',
placeholder: 'e.g. /public/documents/new-file.txt',
required: true,
},
{
@@ -355,10 +358,11 @@ export class Ftp implements INodeType {
type: 'string',
default: '',
description: 'The file path of the file to upload. Has to contain the full path.',
placeholder: 'e.g. /public/documents/file-to-upload.txt',
required: true,
},
{
displayName: 'Binary Data',
displayName: 'Binary File',
displayOptions: {
show: {
operation: ['upload'],
@@ -371,7 +375,7 @@ export class Ftp implements INodeType {
description: 'The text content of the file to upload',
},
{
displayName: 'Binary Property',
displayName: 'Input Binary Field',
displayOptions: {
show: {
operation: ['upload'],
@@ -381,7 +385,7 @@ export class Ftp implements INodeType {
name: 'binaryPropertyName',
type: 'string',
default: 'data',
description: 'Object property name which holds binary data',
hint: 'The name of the input binary field containing the file to be written',
required: true,
},
{
@@ -411,6 +415,7 @@ export class Ftp implements INodeType {
name: 'path',
type: 'string',
default: '/',
placeholder: 'e.g. /public/folder',
description: 'Path of directory to list contents of',
required: true,
},