mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
🔀 Merge branch 'master' of https://github.com/vuchl/n8n
This commit is contained in:
@@ -164,11 +164,18 @@ export class MoveBinaryData implements INodeType {
|
|||||||
default: {},
|
default: {},
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
displayName: 'Keep Source',
|
displayName: 'Encoding',
|
||||||
name: 'keepSource',
|
name: 'encoding',
|
||||||
type: 'boolean',
|
type: 'string',
|
||||||
default: false,
|
displayOptions: {
|
||||||
description: 'If the source key should be kept. By default does it get deleted.',
|
show: {
|
||||||
|
'/mode': [
|
||||||
|
'binaryToJson',
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
|
default: 'utf8',
|
||||||
|
description: 'Set the encoding of the data stream',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
displayName: 'JSON Parse',
|
displayName: 'JSON Parse',
|
||||||
@@ -187,6 +194,13 @@ export class MoveBinaryData implements INodeType {
|
|||||||
default: false,
|
default: false,
|
||||||
description: 'Run JSON parse on the data to get propery object data.',
|
description: 'Run JSON parse on the data to get propery object data.',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Keep Source',
|
||||||
|
name: 'keepSource',
|
||||||
|
type: 'boolean',
|
||||||
|
default: false,
|
||||||
|
description: 'If the source key should be kept. By default does it get deleted.',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Mime Type',
|
displayName: 'Mime Type',
|
||||||
name: 'mimeType',
|
name: 'mimeType',
|
||||||
@@ -252,7 +266,8 @@ export class MoveBinaryData implements INodeType {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
let convertedValue = new Buffer(value.data, 'base64').toString('utf8');
|
const encoding = (options.encoding as string) || 'utf8';
|
||||||
|
let convertedValue = new Buffer(value.data, 'base64').toString(encoding);
|
||||||
|
|
||||||
if (setAllData === true) {
|
if (setAllData === true) {
|
||||||
// Set the full data
|
// Set the full data
|
||||||
|
|||||||
Reference in New Issue
Block a user