Hi, I want to upload and download file from sharepoint using .net web api.
Loading
Hi, I want to upload and download file from sharepoint using .net web api.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jayraj ChhayaPosted Nov 7, 2024, 10:15 AM
To upload and download files from SharePoint using AD authentication in a .NET Web API, you can utilize the SharePoint Client Object Model (CSOM). Below is a concise example demonstrating both operations.
Uploading a File Downloading a FileEnsure you replace placeholders like
your_username,your_password, andyour_domainwith actual values. This approach allows seamless interaction with SharePoint while leveraging AD authentication for secure access.