Forum Discussion

DavidLilley's avatar
DavidLilley
Copper Contributor
Dec 13, 2024

App Folder is being named "Graph"

There is an issue where the App Folder is being named "Graph" instead of the intended Application Name for some users, specifically those uploading to "my.microsoftpersonalcontent.com."

Scenario:

1 A user logs in to the application and OneDrive via OAuth.

2 The user uploads a file to OneDrive.

Expected Outcome: The file should be uploaded to

/apps/**MyApp**/SomeFile.txt

Actual Outcome: The file is uploaded to

/apps/**Graph**/SomeFile.txt

The upload process utilizes the following special URL: OneDrive API: Get Special Folder

https://learn.microsoft.com/en-us/onedrive/developer/rest-api/api/drive_get_specialfolder?view=odsp-graph-online

 

The request is made using:

POST https://graph.microsoft.com/v1.0/me/drive/special/approot:/SomeFile.txt:/createUploadSession

This returns a URL for posting the upload:

https://my.microsoftpersonalcontent.com/personal/XXXXXXX/_api/v2.0/drive/items/YYYYYYYY/uploadSession?guid='XXXXX4-4YYYY-bCCCDDDDDDD'&overwrite=True&rename=False&dc=0&tempauth=d3f4f4f4f4f....

 

No RepliesBe the first to reply

Resources