I want to upload documents from a web portal to SharePoint programmatically. That is, as user uploads a document it should go directly into SharePoint. I am new to SharePoint and am looking for suggestions/ideas on how to achieve above. Thanks
How to upload a document to SharePoint programmatically
sharepoint
Best Answer
You have multiple ways of uploading a document, depending on where you code is running. The steps are practically the same.
From the Server Object Model
Use this one if you are working in the SharePoint server side (Web Parts, Event Receivers, Application Pages, etc.)
From client side code (C#)
Use this one if you are working from a client application that consumes SharePoint services.
From JS using the SharePoint web services
Use this one if you want to upload a document from pages without the server roundtrip:
Hope it helps!