mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
fix(Webhook Node): Fix handling of form-data files (#8256)
This commit is contained in:
committed by
GitHub
parent
b6c42cc084
commit
fc2903096e
@@ -99,7 +99,7 @@ export class Webhook extends Node {
|
||||
const options = context.getNodeParameter('options', {}) as {
|
||||
binaryData: boolean;
|
||||
ignoreBots: boolean;
|
||||
rawBody: Buffer;
|
||||
rawBody: boolean;
|
||||
responseData?: string;
|
||||
};
|
||||
const req = context.getRequestObject();
|
||||
@@ -225,7 +225,7 @@ export class Webhook extends Node {
|
||||
},
|
||||
};
|
||||
|
||||
if (files?.length) {
|
||||
if (files && Object.keys(files).length) {
|
||||
returnItem.binary = {};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user