Connecting Nextcloud via WebDAV

Need help with FileZilla Client? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
modda
500 Command not understood
Posts: 4
Joined: 2018-10-05 12:55

Connecting Nextcloud via WebDAV

#1 Post by modda » 2018-10-05 13:04

Hi everyone,

today I got FileZilla Pro and tried to connect my Nextcloud via WebDAV.

As URL I tried:

- https://example.com
- https://example.com/remote.php/dav/files/USERNAME/

With the 2nd way there is a connection but I get the error, that the table of contents could not be received.

Does anybody know, how I can connect die Nextcloud to FileZilla WebDAV?

Best regarda
modda

User avatar
botg
Site Admin
Posts: 35535
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Connecting Nextcloud via WebDAV

#2 Post by botg » 2018-10-05 16:24

Please post a complete and unmodified log.

modda
500 Command not understood
Posts: 4
Joined: 2018-10-05 12:55

Re: Connecting Nextcloud via WebDAV

#3 Post by modda » 2018-10-05 17:48

Hi, this is the Log. Some words in German:

I masked the real domain.

Status: Auflösen der IP-Adresse für domain.de
Status: Verbinde mit 11.11.11.11:11...
Status: Verbindung hergestellt, initialisiere TLS...
Status: Überprüfe Zertifikat...
Status: TLS-Verbindung hergestellt, schicke HTTP-Anfrage
Befehl: PROPFIND / HTTP/1.1
Befehl: Authorization: **************************
Befehl: Connection: keep-alive
Befehl: Content-Length: 0
Befehl: Depth: 1
Befehl: Host: domain.de:443
Befehl: Keep-Alive: 300
Befehl: User-Agent: FileZilla/3.37.4
Antwort: HTTP/1.1 405 Method Not Allowed
Antwort: Date: Fri, 05 Oct 2018 17:45:01 GMT
Antwort: Server: Apache
Antwort: Expires: Thu, 19 Nov 1981 08:52:00 GMT
Antwort: Cache-Control: no-store, no-cache, must-revalidate
Antwort: Pragma: no-cache
Antwort: Set-Cookie: oc_sessionPassphrase=KcNPD5Le85XpQkzB5qwcsMU8A12qwJ42eG6COfpihVwlkxN%2BOwbel%2FHWH%2BdCOphjjh4OMfhJPyYMVFHY4GxshxJHdq4RzW%2Fo5ItThc7kB5HpLRifOXbq8iYwgBIl9if2; path=/; secure; HttpOnly
Antwort: Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-eval' 'nonce-THk1SUJRSkxXU215SFVlcVFTSEJEc3VBQ0IrRHBJYTc3VUZqTWdpaTFJdz06ZmgwdVZYRW5FVVR3YmdUQWVSaUhWNTc2WkVXbzNQL0Rsd3hhZVc3d21zQT0='; style-src 'self' 'unsafe-inline'; frame-src *; img-src * data: blob:; font-src 'self' data:; media-src *; connect-src *; object-src 'none'; base-uri 'self';
Antwort: X-Frame-Options: SAMEORIGIN
Antwort: X-XSS-Protection: 1; mode=block
Antwort: X-Content-Type-Options: nosniff
Antwort: X-Robots-Tag: none
Antwort: X-Download-Options: noopen
Antwort: X-Permitted-Cross-Domain-Policies: none
Antwort: Set-Cookie: __Host-nc_sameSiteCookielax=true; path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax
Antwort: Set-Cookie: __Host-nc_sameSiteCookiestrict=true; path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=strict
Antwort: Set-Cookie: ocj5zcpsfx32=914c343b08330ba077ea571ed34884d6; path=/; secure; HttpOnly
Antwort: Set-Cookie: cookie_test=test; expires=Fri, 05-Oct-2018 18:45:01 GMT; Max-Age=3600
Antwort: Upgrade: h2,h2c
Antwort: Connection: Upgrade, Keep-Alive
Antwort: Keep-Alive: timeout=2, max=1000
Antwort: Transfer-Encoding: chunked
Antwort: Content-Type: text/html; charset=UTF-8
Fehler: Verzeichnisinhalt konnte nicht empfangen werden

User avatar
botg
Site Admin
Posts: 35535
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Connecting Nextcloud via WebDAV

#4 Post by botg » 2018-10-06 21:41

The server rejects the PROPFIND method, meaning that the location entered as the default remote directory (or "/" if none entered), is not a WebDAV resource.

modda
500 Command not understood
Posts: 4
Joined: 2018-10-05 12:55

Re: Connecting Nextcloud via WebDAV

#5 Post by modda » 2018-10-08 07:24

Without changing anything on the server I can connect with the software "Cyberduck" via WebDAV. But in Cyberduck there are advaced Options to type the whole path.

In FileZilla it's:

I Type https://domain.de/remote.php/dav/files/USERNAME/ and after saving it's just https://domain.de

Trying to type the "remote.php/dav/files/USERNAME/" in advanced options and standard-folder of Server don't work.

In Cyberduck i type https://domain.de and in advanced the rest of the path "remote.php/dav/files/USERNAME/" and it works.

So the FileZilla Software maybe needs to be fixed?

Best regards
modda

User avatar
botg
Site Admin
Posts: 35535
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Connecting Nextcloud via WebDAV

#6 Post by botg » 2018-10-08 07:56

Trying to type the "remote.php/dav/files/USERNAME/" in advanced options and standard-folder of Server don't work.
The leading slash needs to be part of the path.

modda
500 Command not understood
Posts: 4
Joined: 2018-10-05 12:55

Re: Connecting Nextcloud via WebDAV

#7 Post by modda » 2018-10-08 08:08

botg wrote:
2018-10-08 07:56
Trying to type the "remote.php/dav/files/USERNAME/" in advanced options and standard-folder of Server don't work.
The leading slash needs to be part of the path.
Oh - my - god. Awkward.

But at least it will help some other users (If using the search).

Thank you!
modda

lee3521
500 Command not understood
Posts: 1
Joined: 2018-11-24 22:11
First name: Lee

Re: Connecting Nextcloud via WebDAV

#8 Post by lee3521 » 2018-11-24 22:15

Could you please show me an example of what you mean by the "leading slash"? How should I format the Advanced remote folder field and how should I format the host id field?

chaganaut
500 Command not understood
Posts: 1
Joined: 2019-01-29 13:18
First name: f
Last name: f

Re: Connecting Nextcloud via WebDAV

#9 Post by chaganaut » 2019-01-29 13:29

I just bought and installed Filezilla Pro for the same reason: Being able to connect to a nextcloud server via webdav.
And I ran in exactly the same issue.
Can you please tell your paying users how you intended this to work with nextcloud webdav??

Like another user already said, there are free alternatives which are able to do this right out of the box and I'm regarding my purchase of filezilla pro as a sponsoring towards the ftp-client I always liked most. But with this sloppy support for the pro version and bloatware inside of the installer of the free version I'm starting to regret my investment.

User avatar
botg
Site Admin
Posts: 35535
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Connecting Nextcloud via WebDAV

#10 Post by botg » 2019-01-29 13:55

A leading slash is a slash that comes at the beginning. It is used to denote absolute paths.

foo is a relative path because it has no leading slash.
/foo is an absolute path because it has a leading slash.

The Site Manager of FileZilla always requires absolute paths for the default remote directory.

hurpa
500 Command not understood
Posts: 1
Joined: 2019-03-06 08:46
First name: I
Last name: P

Re: Connecting Nextcloud via WebDAV

#11 Post by hurpa » 2019-03-06 08:49

Hi,

With this "leading slash" is FZ Pro working okay with Nextcloud?

Post Reply