aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2017-10-15 21:42:41 +0200
committerGitHub <noreply@github.com>2017-10-15 21:42:41 +0200
commita5912cbe33649236dd3edf284b1182d7cf39819b (patch)
treed9d9ec5a87de6feff4404f70111f4f9dffa8604b
parenta0823540b0649a267d76fa1f9db2194a5dcc69a1 (diff)
parentd27b0b07bcf9ec9605840c5e66e736f54127c258 (diff)
downloadnextcloud-server-a5912cbe33649236dd3edf284b1182d7cf39819b.tar.gz
nextcloud-server-a5912cbe33649236dd3edf284b1182d7cf39819b.zip
Merge pull request #6812 from nextcloud/upload-cache-path
also use configured 'cache_path' for new chunking
-rw-r--r--lib/private/Files/Mount/CacheMountProvider.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Files/Mount/CacheMountProvider.php b/lib/private/Files/Mount/CacheMountProvider.php
index 14ebb7c5843..782dcffc439 100644
--- a/lib/private/Files/Mount/CacheMountProvider.php
+++ b/lib/private/Files/Mount/CacheMountProvider.php
@@ -58,10 +58,12 @@ class CacheMountProvider implements IMountProvider {
$cacheDir = rtrim($cacheBaseDir, '/') . '/' . $user->getUID();
if (!file_exists($cacheDir)) {
mkdir($cacheDir, 0770, true);
+ mkdir($cacheDir . '/uploads', 0770, true);
}
return [
- new MountPoint('\OC\Files\Storage\Local', '/' . $user->getUID() . '/cache', ['datadir' => $cacheDir, $loader])
+ new MountPoint('\OC\Files\Storage\Local', '/' . $user->getUID() . '/cache', ['datadir' => $cacheDir, $loader]),
+ new MountPoint('\OC\Files\Storage\Local', '/' . $user->getUID() . '/uploads', ['datadir' => $cacheDir . '/uploads', $loader])
];
} else {
return [];