mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
Merge 46f76c68c2
into d2dd1796a8
This commit is contained in:
commit
daa44e966d
|
@ -47,7 +47,7 @@ export const fileFields: INodeProperties[] = [
|
|||
show: {
|
||||
operation: ['upload'],
|
||||
resource: ['file'],
|
||||
'@version': [2, 2.1],
|
||||
'@version': [{ _cnd: { gte: 2 } }],
|
||||
},
|
||||
},
|
||||
description: 'Whether the data to upload should be taken from binary field',
|
||||
|
@ -62,7 +62,7 @@ export const fileFields: INodeProperties[] = [
|
|||
operation: ['upload'],
|
||||
resource: ['file'],
|
||||
binaryData: [false],
|
||||
'@version': [2, 2.1],
|
||||
'@version': [{ _cnd: { gte: 2 } }],
|
||||
},
|
||||
},
|
||||
placeholder: '',
|
||||
|
@ -78,23 +78,7 @@ export const fileFields: INodeProperties[] = [
|
|||
operation: ['upload'],
|
||||
resource: ['file'],
|
||||
binaryData: [true],
|
||||
'@version': [2, 2.1],
|
||||
},
|
||||
},
|
||||
placeholder: '',
|
||||
description: 'Name of the binary property which contains the data for the file to be uploaded',
|
||||
},
|
||||
{
|
||||
displayName: 'File Property',
|
||||
name: 'binaryPropertyName',
|
||||
type: 'string',
|
||||
default: 'data',
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: ['upload'],
|
||||
resource: ['file'],
|
||||
'@version': [{ _cnd: { gte: 2.2 } }],
|
||||
'@version': [{ _cnd: { gte: 2 } }],
|
||||
},
|
||||
},
|
||||
placeholder: '',
|
||||
|
@ -123,7 +107,7 @@ export const fileFields: INodeProperties[] = [
|
|||
},
|
||||
displayOptions: {
|
||||
show: {
|
||||
'@version': [2, 2.1],
|
||||
'@version': [{ _cnd: { gte: 2 } }],
|
||||
},
|
||||
},
|
||||
default: [],
|
||||
|
|
Loading…
Reference in a new issue