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:
RomanDavydchuk
2025-05-23 10:08:01 +03:00
committed by GitHub
parent fa620f2d5b
commit 20604983cd
2 changed files with 4 additions and 1 deletions

View File

@@ -126,7 +126,7 @@ describe('test GoogleDriveV2: file upload', () => {
undefined,
{ uploadType: 'resumable' },
undefined,
{ returnFullResponse: true },
{ returnFullResponse: true, headers: { 'X-Upload-Content-Type': 'image/jpg' } },
);
expect(transport.googleApiRequest).toHaveBeenCalledWith(
'PATCH',

View File

@@ -126,6 +126,9 @@ export async function execute(this: IExecuteFunctions, i: number): Promise<INode
undefined,
{
returnFullResponse: true,
headers: {
'X-Upload-Content-Type': mimeType,
},
},
);