mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
🐛 Binary data handling fixes (#2629)
* Update node airtable * Update nodenextcloud * Update node spreadsheet * Update node cortex, dropbox, editImage nodes * Update node emailSend * Update node ftp * Update node googleDrive * Update node googleDrive fix * Update node youtube * Update node htmlExtract * Update node linkedIn * Update node mailgun * Update node matrix * Update node pipedrive * Update node readPdf * Update node facebookGraphApi * Update node httpRequest * Update node nocoDB * Update node httpRequest, respondToWebhook * Update node signi4 * Update node slack * Update node zulip * cleanup * fix generic funcs * 🐛 Fix EditImage Node Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
This commit is contained in:
@@ -1,7 +1,4 @@
|
||||
import {
|
||||
BINARY_ENCODING,
|
||||
IExecuteFunctions,
|
||||
} from 'n8n-core';
|
||||
import { IExecuteFunctions } from 'n8n-core';
|
||||
|
||||
import {
|
||||
IDataObject,
|
||||
@@ -2423,7 +2420,7 @@ export class GoogleDrive implements INodeType {
|
||||
originalFilename = item.binary[propertyNameUpload].fileName;
|
||||
}
|
||||
|
||||
body = Buffer.from(item.binary[propertyNameUpload].data, BINARY_ENCODING);
|
||||
body = await this.helpers.getBinaryDataBuffer(i, propertyNameUpload);
|
||||
} else {
|
||||
// Is text file
|
||||
body = Buffer.from(this.getNodeParameter('fileContent', i) as string, 'utf8');
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
import {
|
||||
BINARY_ENCODING,
|
||||
IExecuteFunctions,
|
||||
} from 'n8n-core';
|
||||
import { IExecuteFunctions } from 'n8n-core';
|
||||
|
||||
import {
|
||||
IDataObject,
|
||||
@@ -426,7 +423,7 @@ export class YouTube implements INodeType {
|
||||
mimeType = item.binary[binaryProperty].mimeType;
|
||||
}
|
||||
|
||||
const body = Buffer.from(item.binary[binaryProperty].data, BINARY_ENCODING);
|
||||
const body = await this.helpers.getBinaryDataBuffer(i, binaryProperty);
|
||||
|
||||
const requestOptions = {
|
||||
headers: {
|
||||
@@ -913,7 +910,7 @@ export class YouTube implements INodeType {
|
||||
mimeType = item.binary[binaryProperty].mimeType;
|
||||
}
|
||||
|
||||
const body = Buffer.from(item.binary[binaryProperty].data, BINARY_ENCODING);
|
||||
const body = await this.helpers.getBinaryDataBuffer(i, binaryProperty);
|
||||
|
||||
const requestOptions = {
|
||||
headers: {
|
||||
|
||||
Reference in New Issue
Block a user