how to upload files in one drive using .net web API

ciboligi ijavima 20 Reputation points
2023-11-23T04:56:18.3633333+00:00

how to upload files in one drive using .net web API , i cannot find any proper resource for that , i have seen this to create a new folder and test it :

https://graph.microsoft.com/v1.0/me/drive/root/children

on this page Graph Explorer | Try Microsoft Graph APIs - Microsoft Graph , still here i can test for other things like checking recent files , list of items in my drive ,
but i cannot find for uploading files .

i have created application in microsoft azure to get client , secret , tenant IDs

Microsoft 365 and Office | OneDrive | For business | Windows
Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 46,406 Reputation points
    2023-11-23T07:56:02.2266667+00:00

    Hi @ciboligi ijavima

    You should call the upload API to upload files to your OneDrive.

    User's image

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.