How to upload a file to OneDrive using the OneDrive SDK

%3CLINGO-SUB%20id%3D%22lingo-sub-1301848%22%20slang%3D%22en-US%22%3EHow%20to%20upload%20a%20file%20to%20OneDrive%20using%20the%20OneDrive%20SDK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1301848%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%3EWriting%20a%20console%20application%20.NET%20(C%23%20or%20VB%20are%20both%20ok)%20that%20will%20upload%20a%20file%20to%20OneDrive%20using%20the%20SDK.%20Can%20someone%20please%20give%20an%20example%20of%20how%20this%20can%20be%20done%20in%20.NET%20with%20login%2Fauthentication%20code%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EThanks.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1301848%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1305145%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20upload%20a%20file%20to%20OneDrive%20using%20the%20OneDrive%20SDK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1305145%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F598568%22%20target%3D%22_blank%22%3E%40rshahrabani%3C%2FA%3E%26nbsp%3B-%20could%20you%20please%20try%20uploading%20messages%20using%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Fbots%2Fhow-to%2Fconversations%2Fsend-and-receive-files%3Ftabs%3Dtypescript%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Ebot%3C%2FA%3E.%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Writing a console application .NET (C# or VB are both ok) that will upload a file to OneDrive using the SDK. Can someone please give an example of how this can be done in .NET with login/authentication code?

 

Thanks.

1 Reply

@rshahrabani - could you please try uploading messages using bot.