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
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-01-24 14:13:38 +01:00
committed by GitHub
parent 0d33329bc8
commit 58d0890dc3

View File

@@ -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 = {