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

Copper 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

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.

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.