'Microsoft graph upload file -> path is ignored

i am uploading files to onedrive using microsoft graph api.

const uploadTask = await MicrosoftGraph.OneDriveLargeFileUploadTask.create(this.graphClient, file, options);
        const response = await uploadTask.upload();

This works quite well. Only problem is, in the options I declare where to put the file to. It shall be put to my organization's drive, but no matter what I try it gets inserted into my personal onedrive drive.

let options = { //Drive ID is previously requestes from the organizations group.id -> drive
            path: "/drive/" + drive.id + "/root/General/",
            conflictBehavior: "replace",
            fileName: file.name,
            rangeSize: 1024 * 1024 // must be a multiple of 320 KiB
        };


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source