Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2017-07-31 23:46:19 +0300
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2017-12-15 16:46:36 +0300
commit8c5d656f3b605a8cedbf412b7498b936e12866e6 (patch)
treef6d87ef4c5d7240ec03107856428e5c452be1a82 /apps/dav/bin
parentb19b1379699cf7790a13575f27a05b2f6db14f6a (diff)
Handle OC-Total-Length in new chunking
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'apps/dav/bin')
-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)
]);