hint:'The name of the input field containing the file data to be processed',
},
{
displayName:'Destination Output Field',
name:'destinationKey',
type:'string',
default:'data',
required: true,
placeholder:'e.g data',
description:'The name of the output field that will contain the extracted data',
},
{
displayName:'Options',
name:'options',
type:'collection',
placeholder:'Add Option',
default:{},
options:[
{
displayName:'File Encoding',
name:'encoding',
type:'options',
options: encodeDecodeOptions,
default:'utf8',
description:'Specify the encoding of the file, defaults to UTF-8',
},
{
displayName:'Strip BOM',
name:'stripBOM',
displayOptions:{
show:{
encoding:['utf8','cesu8','ucs2'],
},
},
type:'boolean',
default:true,
description:
'Whether to strip the BOM (Byte Order Mark) from the file, this could help in an environment where the presence of the BOM is causing issues or inconsistencies',
},
{
displayName:'Keep Source',
name:'keepSource',
type:'options',
default:'json',
options:[
{
name:'JSON',
value:'json',
description:'Include JSON data of the input item',
},
{
name:'Binary',
value:'binary',
description:'Include binary data of the input item',
},
{
name:'Both',
value:'both',
description:'Include both JSON and binary data of the input item',