Help needed for Sharepoint Online Download\Upload\Delete\Move C# code examples?

%3CLINGO-SUB%20id%3D%22lingo-sub-905503%22%20slang%3D%22en-US%22%3EHelp%20needed%20for%20Sharepoint%20Online%20Download%5CUpload%5CDelete%5CMove%20C%23%20code%20examples%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-905503%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Everyone%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20developing%20an%20application%20that%20can%20upload%5Cdownload%5Cdelete%5Cmove%20files%20from%5Cto%20SharePoint%20online%20to%5Cfrom%20local%20machine%20using%20CSOM%20or%20REST%20API%3F%20Please%2C%20can%20you%20help%20me%20with%20this%20by%20providing%20any%20examples%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ENote%3A%20The%20files%20size%20more%20than%20200%20and%20less%20than%201%20GB%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-906072%22%20slang%3D%22en-US%22%3ERe%3A%20Help%20needed%20for%20Sharepoint%20Online%20Download%5CUpload%5CDelete%5CMove%20C%23%20code%20examples%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-906072%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F423735%22%20target%3D%22_blank%22%3E%40Hp2019%3C%2FA%3E%26nbsp%3BDid%20you%20give%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FSharePoint%2FPnP%2Ftree%2Fmaster%2FSamples%2FCore.RestFileUpload%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ethis%3C%2FA%3E%26nbsp%3Ba%20shot%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-909034%22%20slang%3D%22en-US%22%3ERe%3A%20Help%20needed%20for%20Sharepoint%20Online%20Download%5CUpload%5CDelete%5CMove%20C%23%20code%20examples%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-909034%22%20slang%3D%22en-US%22%3E%3CP%3EThank%20you%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F419534%22%20target%3D%22_blank%22%3E%40mrehmat%3C%2FA%3E%26nbsp%3B.%20Yes%20i%20tried%20looking%20into%20the%20examples%20but%20still%20not%20sure%20which%20method%20i%20should%20adopt%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EREST%20API%20or%20CSOM%20method%3F%20My%20file%20size%20can%20be%20from%202MB%20to%201GB.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-909439%22%20slang%3D%22en-US%22%3ERe%3A%20Help%20needed%20for%20Sharepoint%20Online%20Download%5CUpload%5CDelete%5CMove%20C%23%20code%20examples%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-909439%22%20slang%3D%22en-US%22%3E%3CP%3EI%20personally%20prefer%20REST.%20If%20you%20look%20at%20some%20of%20the%20backend%20code%20that%20PnP%20libraries%20are%20running%20on%2C%20they%20heavily%20reliant%20on%20Graph%2FREST%20calls%20themselves.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hi Everyone,

 

I am developing an application that can upload\download\delete\move files from\to SharePoint online to\from local machine using CSOM or REST API? Please, can you help me with this by providing any examples?

 

Note: The files size more than 200 and less than 1 GB

 

Thanks in advance!

 

3 Replies
Highlighted
Highlighted

Thank you @mrehmat . Yes i tried looking into the examples but still not sure which method i should adopt?

 

REST API or CSOM method? My file size can be from 2MB to 1GB.

Highlighted

I personally prefer REST. If you look at some of the backend code that PnP libraries are running on, they heavily reliant on Graph/REST calls themselves.