From 0ab236f8a2cad9f8ce490f9508887218fd78fb5e Mon Sep 17 00:00:00 2001 From: flymarq Date: Fri, 25 Jul 2025 12:26:35 +0200 Subject: [PATCH 1/2] Uri in xml response must be url encoded. The Uri is derived from the request with the method getPath, which generates a valid path fragment suitable for file and directory names. In the XML-response to a lock-request the uri is used for lockroot element. If the uri contains a space or german umlauts, a strict client like libneon, which is used in davfs2, refuses the lock reponse and files cannot be copied. --- lib/DAV/Locks/Plugin.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/DAV/Locks/Plugin.php b/lib/DAV/Locks/Plugin.php index a7e2b44adf..99e317e217 100644 --- a/lib/DAV/Locks/Plugin.php +++ b/lib/DAV/Locks/Plugin.php @@ -234,6 +234,7 @@ public function httpLock(RequestInterface $request, ResponseInterface $response) } $this->lockNode($uri, $lockInfo); + $lockInfo->uri = urlencode($lockInfo->uri); $response->setHeader('Content-Type', 'application/xml; charset=utf-8'); $response->setHeader('Lock-Token', 'token.'>'); From 03940b85bf7b17efd0bf41d475d6c059d972b38f Mon Sep 17 00:00:00 2001 From: flymarq Date: Fri, 25 Jul 2025 13:07:52 +0200 Subject: [PATCH 2/2] Multiple unlimited uploads with progress bar. - allow upload of multipe files - uploads are not limited by php upload size using PUT - progress bar for each file --- lib/DAV/Browser/Plugin.php | 108 +++++++++++++++++++++++++++++++++++-- 1 file changed, 104 insertions(+), 4 deletions(-) diff --git a/lib/DAV/Browser/Plugin.php b/lib/DAV/Browser/Plugin.php index 5b453ac751..197404f90b 100644 --- a/lib/DAV/Browser/Plugin.php +++ b/lib/DAV/Browser/Plugin.php @@ -512,11 +512,111 @@ public function htmlActionsPanel(DAV\INode $node, &$output, $path)

Upload file

- -
-
- +Select one or more file(s), then you can upload.
+ +
+ +
+ HTML; }