Uploading files to Sharepoint (WSS 3.0) document library using HTTP PUT

后端 未结 6 729
甜味超标
甜味超标 2020-12-08 17:56

Hi I have the following piece of code to upload a file to Sharepoint. It uses HTTP PUT:

public static string UploadFile(string destUrl, string sourcePath)
           


        
6条回答
  •  暖寄归人
    2020-12-08 18:03

    Alex, This happened to me too. You probable should create another another lit or document library and upload files into it to test.

    You may want to check the variable "destUri" to see if it points to exactly the expected sharepoint list.

    My situation is I firstly created a document library "Requrements", there is a typo mistake, then i changed the title to "Requirements". You should notice that sharepoint still keeps the URL to this list as http://server:port/Requrements

    This is an exeption. Hopefully it helps.

提交回复
热议问题