mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix(Slack Node): Apply fixes from #12177
This commit is contained in:
parent
da8aafc0e3
commit
ccdc64fe4f
|
@ -47,7 +47,7 @@ export const fileFields: INodeProperties[] = [
|
||||||
show: {
|
show: {
|
||||||
operation: ['upload'],
|
operation: ['upload'],
|
||||||
resource: ['file'],
|
resource: ['file'],
|
||||||
'@version': [2, 2.1],
|
'@version': [{ _cnd: { gte: 2 } }],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
description: 'Whether the data to upload should be taken from binary field',
|
description: 'Whether the data to upload should be taken from binary field',
|
||||||
|
@ -62,7 +62,7 @@ export const fileFields: INodeProperties[] = [
|
||||||
operation: ['upload'],
|
operation: ['upload'],
|
||||||
resource: ['file'],
|
resource: ['file'],
|
||||||
binaryData: [false],
|
binaryData: [false],
|
||||||
'@version': [2, 2.1],
|
'@version': [{ _cnd: { gte: 2 } }],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
placeholder: '',
|
placeholder: '',
|
||||||
|
@ -78,23 +78,7 @@ export const fileFields: INodeProperties[] = [
|
||||||
operation: ['upload'],
|
operation: ['upload'],
|
||||||
resource: ['file'],
|
resource: ['file'],
|
||||||
binaryData: [true],
|
binaryData: [true],
|
||||||
'@version': [2, 2.1],
|
'@version': [{ _cnd: { gte: 2 } }],
|
||||||
},
|
|
||||||
},
|
|
||||||
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 } }],
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
placeholder: '',
|
placeholder: '',
|
||||||
|
@ -123,7 +107,7 @@ export const fileFields: INodeProperties[] = [
|
||||||
},
|
},
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
'@version': [2, 2.1],
|
'@version': [{ _cnd: { gte: 2 } }],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
default: [],
|
default: [],
|
||||||
|
@ -146,6 +130,22 @@ export const fileFields: INodeProperties[] = [
|
||||||
description:
|
description:
|
||||||
'The channel to send the file to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
'The channel to send the file to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Channel Name or ID',
|
||||||
|
name: 'channelId',
|
||||||
|
type: 'options',
|
||||||
|
typeOptions: {
|
||||||
|
loadOptionsMethod: 'getChannels',
|
||||||
|
},
|
||||||
|
displayOptions: {
|
||||||
|
show: {
|
||||||
|
'@version': [{ _cnd: { gte: 2.2 } }],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
default: [],
|
||||||
|
description:
|
||||||
|
'The channel to send the file to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
displayName: 'File Name',
|
displayName: 'File Name',
|
||||||
name: 'fileName',
|
name: 'fileName',
|
||||||
|
|
Loading…
Reference in a new issue