mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +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: {},
|
||||
options: [
|
||||
{
|
||||
displayName: 'Keep Source',
|
||||
name: 'keepSource',
|
||||
type: 'boolean',
|
||||
default: false,
|
||||
description: 'If the source key should be kept. By default does it get deleted.',
|
||||
displayName: 'Encoding',
|
||||
name: 'encoding',
|
||||
type: 'string',
|
||||
displayOptions: {
|
||||
show: {
|
||||
'/mode': [
|
||||
'binaryToJson',
|
||||
],
|
||||
},
|
||||
},
|
||||
default: 'utf8',
|
||||
description: 'Set the encoding of the data stream',
|
||||
},
|
||||
{
|
||||
displayName: 'JSON Parse',
|
||||
@@ -187,6 +194,13 @@ export class MoveBinaryData implements INodeType {
|
||||
default: false,
|
||||
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',
|
||||
name: 'mimeType',
|
||||
@@ -252,7 +266,8 @@ export class MoveBinaryData implements INodeType {
|
||||
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) {
|
||||
// Set the full data
|
||||
|
||||
Reference in New Issue
Block a user