diff --git a/README.md b/README.md index e2314239..5bfe85cf 100644 --- a/README.md +++ b/README.md @@ -1440,7 +1440,7 @@ general usage: on macos, connect from finder: * [Go] -> [Connect to Server...] -> http://192.168.123.1:3923/ -to be able to edit existing files, the client must have the Delete-permission, and some webdav clients will also require the [daw](https://copyparty.eu/cli/#g-daw) volflag or global-option (not necessary if the client sends the `x-oc-mtime` header). Without `daw`, those clients will fail to modify existing files and instead create new copies with names like `notes.txt-1771978661.726032-3i9GPghL.txt`. **NOTE:** Enabling `daw` will also make all PUT-uploads overwrite existing files if the user has delete-access, so use with caution. +to be able to edit existing files, the client must have the Delete-permission, and some webdav clients will also require the [daw](https://copyparty.eu/cli/#g-daw) volflag or global-option (not necessary if the client sends the `x-oc-mtime` header). Without `daw`, those clients will fail to modify existing files and instead create new copies with names like `notes.txt-1771978661.726032-3i9GPghL.txt`. **NOTE:** Enabling `daw` will also make all PUT-uploads overwrite existing files if the user has delete-access, so use with caution. Another alternative is the [dav-port](https://copyparty.eu/cli/#g-dav-port) option > note: if you have enabled [IdP authentication](#identity-providers) then that may cause issues for some/most webdav clients; see [the webdav section in the IdP docs](https://github.com/9001/copyparty/blob/hovudstraum/docs/idp.md#connecting-webdav-clients) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index 2170728a..721143f4 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -2576,6 +2576,10 @@ class HttpCli(object): vfs.flags.get("daw") or "replace" in self.headers or "x-oc-mtime" in self.headers + or ( + self.args.dav_port + and self.args.dav_port == self.s.getsockname()[1] + ) ) ) or ( not bos.path.exists(os.path.join(fdir, tnam))