Upload file to SharePoint WSS 3.0 with WebRequest PUT

前端 未结 3 1174
日久生厌
日久生厌 2021-01-14 14:00

Hey, I\'ve got this nice little piece of code, much like all the other versions of this method of upload using WSS WebServices. I\'ve got one major problem though - once I h

相关标签:
3条回答
  • 2021-01-14 14:27

    Have you tried using a capital T? SharePoint's webdav header processing is not very likely to be case-sensitive, but the protocol does specify a capital T. Oh, and what is the response? A 412 error code or something altogether different?

    0 讨论(0)
  • 2021-01-14 14:30

    Why not use the out-of-the-box SharePoint webservice, Lists.asmx? You'll find it in

    http://SITEURL/___vti_bin/Lists.asmx

    Edit, I checked out the link and it seems you are calling the out of the box web service. This has got be versioning related then. Can you check out the different versions that exist in the doc lib of the specific file? see if it perhaps gets added as a minor version through the service?

    0 讨论(0)
  • 2021-01-14 14:37

    SOLVED -- I found a little bug - the file was being created in the right place, but the update path was wrong.. I ended up finding a folder full of files with many, many new versions.. doh!

    0 讨论(0)
提交回复
热议问题