Upload a file to SharePoint through the built-in web services

Posted by Andy McCluggage on Stack Overflow See other posts from Stack Overflow or by Andy McCluggage
Published on 2008-08-28T08:53:00Z Indexed on 2010/04/13 13:33 UTC
Read the original article Hit count: 281

Filed under:
|

What is the best way to upload a file to a Document Library on a SharePoint server through the built-in web services that version WSS 3.0 exposes?

Following the two initial answers...

  • We definitely need to use the Web Service layer as we will be making these calls from remote client applications.

  • The WebDAV method would work for us, but we would prefer to be consistent with the web service integration method.

There is additionally a web service to upload files, painful but works all the time.

Are you referring to the “Copy” service? We have been successful with this service’s CopyIntoItems method. Would this be the recommended way to upload a file to Document Libraries using only the WSS web service API?

I have posted our code as a suggested answer.

© Stack Overflow or respective owner

Related posts about sharepoint

Related posts about wss