From 58d0890dc319c918183fd81999dc87ea9c4732fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Tue, 24 Jan 2023 14:13:38 +0100 Subject: [PATCH] fix(Google Drive Node): Use the correct mimetype on converted downloads (#5240) Fixes https://community.n8n.io/t/bug-with-google-drive-node-upload-function/21910/3 --- packages/nodes-base/nodes/Google/Drive/GoogleDrive.node.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nodes-base/nodes/Google/Drive/GoogleDrive.node.ts b/packages/nodes-base/nodes/Google/Drive/GoogleDrive.node.ts index 3cfb6b0e41..5dfb159462 100644 --- a/packages/nodes-base/nodes/Google/Drive/GoogleDrive.node.ts +++ b/packages/nodes-base/nodes/Google/Drive/GoogleDrive.node.ts @@ -2297,7 +2297,7 @@ export class GoogleDrive implements INodeType { ); } - const mimeType = file.mimeType ?? response.headers['content-type'] ?? undefined; + const mimeType = response.headers['content-type'] ?? file.mimeType ?? undefined; const fileName = downloadOptions.fileName ?? file.name ?? undefined; const newItem: INodeExecutionData = {