davidmoten / davidmoten/odata-client

upload file to onedrive through createUploadSession - itemWithPath() not found

Open
#167 4 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
44
Forks
10
Avg merge
7m
Merged PRs (30d)
7

Description

Hi David,
Found some posts on githud to do following for creating uploading session to upload an item to a drive using graph client. But i dont see the **itemWithPath()** available on **root()** for odataClientFactory. Can you please check on this. or suggest an alternative to CreateUploadSession, to upload large files to ondrive.
I'm referring to this api : https://docs.microsoft.com/en-us/onedrive/developer/rest-api/api/driveitem_createuploadsession?view=odsp-graph-online

graphClient
.users(oneDriveUserId)
.drive()
.root()
**.itemWithPath("filename.pdf")**
.createUploadSession(new DriveItemUploadableProperties())
.buildRequest()
.post();

Thanks,
Pavani

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.