feat(n8n Form Trigger Node): Respond with File (#13507)

This commit is contained in:
Dana
2025-03-19 12:56:40 +01:00
committed by GitHub
parent 17fc5c148b
commit 8f46371d77
5 changed files with 344 additions and 3 deletions

View File

@@ -153,6 +153,11 @@ const completionProperties = updateDisplayOptions(
value: 'showText',
description: 'Display simple text or HTML',
},
{
name: 'Return Binary File',
value: 'returnBinary',
description: 'Return incoming binary file',
},
],
},
{
@@ -176,7 +181,7 @@ const completionProperties = updateDisplayOptions(
required: true,
displayOptions: {
show: {
respondWith: ['text'],
respondWith: ['text', 'returnBinary'],
},
},
},
@@ -190,7 +195,7 @@ const completionProperties = updateDisplayOptions(
},
displayOptions: {
show: {
respondWith: ['text'],
respondWith: ['text', 'returnBinary'],
},
},
},
@@ -210,6 +215,21 @@ const completionProperties = updateDisplayOptions(
placeholder: 'e.g. Thanks for filling the form',
description: 'The text to display on the page. Use HTML to show a customized web page.',
},
{
displayName: 'Input Data Field Name',
name: 'inputDataFieldName',
type: 'string',
displayOptions: {
show: {
respondWith: ['returnBinary'],
},
},
default: 'data',
placeholder: 'e.g. data',
description:
'Find the name of input field containing the binary data to return in the Input panel on the left, in the Binary tab',
hint: 'The name of the input field containing the binary file data to be returned',
},
...waitTimeProperties,
{
displayName: 'Options',
@@ -233,7 +253,7 @@ const completionProperties = updateDisplayOptions(
],
displayOptions: {
show: {
respondWith: ['text'],
respondWith: ['text', 'returnBinary'],
},
},
},