mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
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:
parent
0d33329bc8
commit
58d0890dc3
|
@ -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 fileName = downloadOptions.fileName ?? file.name ?? undefined;
|
||||||
|
|
||||||
const newItem: INodeExecutionData = {
|
const newItem: INodeExecutionData = {
|
||||||
|
|
Loading…
Reference in a new issue