webDav.uploadFile(serverUrl, userName, password = NA, remoteLocation, localLocation)
The password is not encrypted when it is sent from the client to the server. You can omit the password parameter if server does not require one.
TRUE
if upload was successful; otherwise,
FALSE
. (For instance, returns
FALSE
if
folder on server does not exist or if file does not exist on client.)
## Not run: ## userName <- "johndoe" ## password <- "mypassword" ## serverUrl <- "http://myserver:8080" ## webdavRoot = paste(serverUrl, "/SPServer/webdav", sep = "") ## resultsFolder <- paste(webdavRoot, "/results", sep = "") ## ## webDav.uploadFile(serverUrl, userName, password, paste(webdavRoot, "/testfile.jpg", sep=""), "c:/myfiles/test.jpg") ## End(Not run)