//e.g. destinationFullURI = "http://dev-moss/sites/home/PropertySharePoint/DocumentLibrary/0/tmp167.tmp"
//sourceFullPath = "c:\\temp\myfiletoupload.tmp"
WebClient webClient = new WebClient();
webClient.Credentials = _credential;
webClient.UploadFile(destinationFullURI, "PUT", sourceFullPath);
Make sure you include the "PUT" method so it doesn't attempt an HTTP post (which is the default behaviour).
1 comment:
It causes error. Conflit.. Thats only for MOSS or it can be done with WSS also?
Post a Comment