diff --git a/packages/nodes-base/nodes/TheHiveProject/actions/alert/create.operation.ts b/packages/nodes-base/nodes/TheHiveProject/actions/alert/create.operation.ts index 911ebf26b3..a57a4ef102 100644 --- a/packages/nodes-base/nodes/TheHiveProject/actions/alert/create.operation.ts +++ b/packages/nodes-base/nodes/TheHiveProject/actions/alert/create.operation.ts @@ -152,8 +152,9 @@ export async function execute( const binaryPropertyName = value.binaryProperty as string; const binaryData = this.helpers.assertBinaryData(i, binaryPropertyName); + const dataBuffer = await this.helpers.getBinaryDataBuffer(i, binaryPropertyName); - formData.append(attachmentIndex, binaryData.data, { + formData.append(attachmentIndex, dataBuffer, { filename: binaryData.fileName, contentType: binaryData.mimeType, });