mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(Google Drive Node): Incorrect MIME type when uploading files on cloud (#15478)
Co-authored-by: Michael Kret <michael.k@radency.com>
This commit is contained in:
@@ -126,7 +126,7 @@ describe('test GoogleDriveV2: file upload', () => {
|
|||||||
undefined,
|
undefined,
|
||||||
{ uploadType: 'resumable' },
|
{ uploadType: 'resumable' },
|
||||||
undefined,
|
undefined,
|
||||||
{ returnFullResponse: true },
|
{ returnFullResponse: true, headers: { 'X-Upload-Content-Type': 'image/jpg' } },
|
||||||
);
|
);
|
||||||
expect(transport.googleApiRequest).toHaveBeenCalledWith(
|
expect(transport.googleApiRequest).toHaveBeenCalledWith(
|
||||||
'PATCH',
|
'PATCH',
|
||||||
|
|||||||
@@ -126,6 +126,9 @@ export async function execute(this: IExecuteFunctions, i: number): Promise<INode
|
|||||||
undefined,
|
undefined,
|
||||||
{
|
{
|
||||||
returnFullResponse: true,
|
returnFullResponse: true,
|
||||||
|
headers: {
|
||||||
|
'X-Upload-Content-Type': mimeType,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user