summaryrefslogtreecommitdiffstats
path: root/apps/dav/bin/chunkperf.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/bin/chunkperf.php')
-rw-r--r--apps/dav/bin/chunkperf.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/dav/bin/chunkperf.php b/apps/dav/bin/chunkperf.php
index bd976e74384..e2280b1e104 100644
--- a/apps/dav/bin/chunkperf.php
+++ b/apps/dav/bin/chunkperf.php
@@ -73,5 +73,7 @@ while(!feof($stream)) {
$destination = pathinfo($file, PATHINFO_BASENAME);
//echo "Moving $uploadUrl/.file to it's final destination $baseUri/files/$userName/$destination" . PHP_EOL;
request($client, 'MOVE', "$uploadUrl/.file", null, [
- 'Destination' => "$baseUri/files/$userName/$destination"
+ 'Destination' => "$baseUri/files/$userName/$destination",
+ 'OC-Total-Length' => filesize($file),
+ 'X-OC-MTime' => filemtime($file)
]);