WebDAVClient icon indicating copy to clipboard operation
WebDAVClient copied to clipboard

Not working with owncloud

Open squadwuschel opened this issue 9 years ago • 2 comments

Hi,

I've tried your Implementation with owncloud and it's not working.

var client = new WebDAVClient.Client(new NetworkCredential { UserName = "myUserName",  Password = "MyPw" });
var baseUrl = "https://myUrl/remote.php/webdav/";

client.Server = baseUrl;
client.BasePath = "/";
var files = await client.List();

Then I've tried this GitHub Repo

https://github.com/DecaTec/Portable-WebDAV-Library

with the same URLs I've tried with your Implementation and there it works fine.

squadwuschel avatar Jun 13 '16 07:06 squadwuschel

What does "it's not working" mean? I also tried to access ownCloud but my test program just terminated without any error or exception. I could solve the issue by editing Server and BasePath properties:

client.Server = "https://myUrl";
client.BasePath = "remote.php/dav/files/username/";

LukeOwlclaw avatar Sep 18 '17 07:09 LukeOwlclaw

Hi LukeOwnCloud, It is not entirely clear that the /remote.php/webdav part should go into the BasePath rather that the endpoint. Thanks anyway for the solution, I was almost getting there through trials and errors :D

L.

Tallmaris avatar Sep 18 '17 08:09 Tallmaris