From b149472bba2a34ebe7f18e1223597e540bcc0109 Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Tue, 15 Jan 2019 10:52:49 +0100 Subject: [PATCH] add modification date info --- developer_manual/client_apis/WebDAV/chunking.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/developer_manual/client_apis/WebDAV/chunking.rst b/developer_manual/client_apis/WebDAV/chunking.rst index 2536b83fd..693971865 100644 --- a/developer_manual/client_apis/WebDAV/chunking.rst +++ b/developer_manual/client_apis/WebDAV/chunking.rst @@ -58,6 +58,11 @@ Assembling the chunk on the server is a matter of initiating a move from the cli ``curl -X MOVE -u roeland:pass --header 'Destination:https://server/remote.php/dav/files/roeland/dest/file.zip' https://server/remote.php/dav/uploads/roeland/myapp-e1663913-4423-4efe-a9cd-26e7beeca3c0/.file`` The server will now assemble the chunks and move the final file to the folder ``dest/file.zip``. + +If a modification time should be set, you can by adding it as header with date as unixtime: +``curl -X MOVE -u roeland:pass --header 'X-OC-Mtime:1547545326' --header 'Destination:https://server/remote.php/dav/files/roeland/dest/file.zip' https://server/remote.php/dav/uploads/roeland/myapp-e1663913-4423-4efe-a9cd-26e7beeca3c0/.file``" +Otherwise the current upload date will be used as modification date. + The chunks and the upload folder will be deleted afterwards. Aborting the upload