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:
@@ -42,7 +42,7 @@ export const mediaFields: INodeProperties[] = [
|
||||
description: 'Name of the media that is being downloaded',
|
||||
},
|
||||
{
|
||||
displayName: 'Binary Property',
|
||||
displayName: 'Put Output File in Field',
|
||||
name: 'binaryPropertyName',
|
||||
type: 'string',
|
||||
default: 'data',
|
||||
@@ -53,6 +53,6 @@ export const mediaFields: INodeProperties[] = [
|
||||
operation: ['download'],
|
||||
},
|
||||
},
|
||||
description: 'Name of the binary property to which to write the data of the read file',
|
||||
hint: 'The name of the output binary field to put the file in',
|
||||
},
|
||||
];
|
||||
|
||||
@@ -496,7 +496,7 @@ export const objectFields: INodeProperties[] = [
|
||||
},
|
||||
},
|
||||
{
|
||||
displayName: 'Use Binary Property',
|
||||
displayName: 'Use Input Binary Field',
|
||||
name: 'createFromBinary',
|
||||
type: 'boolean',
|
||||
displayOptions: {
|
||||
@@ -510,9 +510,10 @@ export const objectFields: INodeProperties[] = [
|
||||
description: 'Whether the data for creating a file should come from a binary field',
|
||||
},
|
||||
{
|
||||
displayName: 'Binary Property',
|
||||
displayName: 'Input Binary Field',
|
||||
name: 'createBinaryPropertyName',
|
||||
type: 'string',
|
||||
hint: 'The name of the input binary field containing the file to be written',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: ['object'],
|
||||
@@ -537,9 +538,10 @@ export const objectFields: INodeProperties[] = [
|
||||
description: 'Content of the file to be uploaded',
|
||||
},
|
||||
{
|
||||
displayName: 'Binary Property',
|
||||
displayName: 'Put Output File in Field',
|
||||
name: 'binaryPropertyName',
|
||||
type: 'string',
|
||||
hint: 'The name of the output binary field to put the file in',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: ['object'],
|
||||
|
||||
@@ -355,7 +355,7 @@ const versionDescription: INodeTypeDescription = {
|
||||
// file:download
|
||||
// ----------------------------------
|
||||
{
|
||||
displayName: 'Binary Property',
|
||||
displayName: 'Put Output File in Field',
|
||||
name: 'binaryPropertyName',
|
||||
type: 'string',
|
||||
required: true,
|
||||
@@ -366,7 +366,7 @@ const versionDescription: INodeTypeDescription = {
|
||||
resource: ['file'],
|
||||
},
|
||||
},
|
||||
description: 'Name of the binary property to which to write the data of the read file',
|
||||
hint: 'The name of the output binary field to put the file in',
|
||||
},
|
||||
{
|
||||
displayName: 'Options',
|
||||
@@ -833,7 +833,7 @@ const versionDescription: INodeTypeDescription = {
|
||||
},
|
||||
|
||||
{
|
||||
displayName: 'Binary Data',
|
||||
displayName: 'Binary File',
|
||||
name: 'binaryData',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
@@ -861,7 +861,7 @@ const versionDescription: INodeTypeDescription = {
|
||||
description: 'The text content of the file to upload',
|
||||
},
|
||||
{
|
||||
displayName: 'Binary Property',
|
||||
displayName: 'Input Binary Field',
|
||||
name: 'binaryPropertyName',
|
||||
type: 'string',
|
||||
default: 'data',
|
||||
@@ -874,8 +874,7 @@ const versionDescription: INodeTypeDescription = {
|
||||
},
|
||||
},
|
||||
placeholder: '',
|
||||
description:
|
||||
'Name of the binary property which contains the data for the file to be uploaded',
|
||||
hint: 'The name of the input binary field containing the file to be uploaded',
|
||||
},
|
||||
|
||||
// ----------------------------------
|
||||
|
||||
@@ -23,13 +23,13 @@ const properties: INodeProperties[] = [
|
||||
default: {},
|
||||
options: [
|
||||
{
|
||||
displayName: 'Binary Property',
|
||||
displayName: 'Put Output File in Field',
|
||||
name: 'binaryPropertyName',
|
||||
type: 'string',
|
||||
placeholder: 'e.g. data',
|
||||
default: 'data',
|
||||
description: 'Use this field name in the following nodes, to use the binary file data',
|
||||
hint: 'The name of the output field to put the binary file data in',
|
||||
hint: 'The name of the output binary field to put the file in',
|
||||
},
|
||||
{
|
||||
displayName: 'Google File Conversion',
|
||||
|
||||
@@ -341,12 +341,12 @@ export class GoogleSlides implements INodeType {
|
||||
description: 'Name of the binary property to which to write the data of the read page',
|
||||
},
|
||||
{
|
||||
displayName: 'Binary Property',
|
||||
displayName: 'Put Output File in Field',
|
||||
name: 'binaryProperty',
|
||||
type: 'string',
|
||||
required: true,
|
||||
default: 'data',
|
||||
description: 'Name of the binary property to which to write to',
|
||||
hint: 'The name of the output binary field to put the file in',
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: ['page'],
|
||||
|
||||
@@ -545,10 +545,11 @@ export const channelFields: INodeProperties[] = [
|
||||
default: '',
|
||||
},
|
||||
{
|
||||
displayName: 'Binary Property',
|
||||
displayName: 'Input Binary Field',
|
||||
name: 'binaryProperty',
|
||||
type: 'string',
|
||||
required: true,
|
||||
hint: 'The name of the input binary field containing the file to be uploaded',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: ['uploadBanner'],
|
||||
|
||||
@@ -107,10 +107,11 @@ export const videoFields: INodeProperties[] = [
|
||||
default: '',
|
||||
},
|
||||
{
|
||||
displayName: 'Binary Property',
|
||||
displayName: 'Input Binary Field',
|
||||
name: 'binaryProperty',
|
||||
type: 'string',
|
||||
required: true,
|
||||
hint: 'The name of the input binary field containing the file to be uploaded',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: ['upload'],
|
||||
|
||||
Reference in New Issue
Block a user