Forum Discussion

Hp2019's avatar
Hp2019
Copper Contributor
Oct 10, 2019

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

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!

 

    • Hp2019's avatar
      Hp2019
      Copper Contributor

      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.

      • mrehmat's avatar
        mrehmat
        Brass Contributor

        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.