summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/files/ajax/upload.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files/ajax/upload.php b/apps/files/ajax/upload.php
index 8433716dec1..fd6aa981542 100644
--- a/apps/files/ajax/upload.php
+++ b/apps/files/ajax/upload.php
@@ -35,6 +35,11 @@ if (empty($_POST['dirToken'])) {
isset($_POST['subdir']) ? $_POST['subdir'] : ''
);
+ // handle reshare
+ if (!empty($linkItem['parent'])) {
+ $dir = '/Shared'.$dir;
+ }
+
if (!$dir || empty($dir) || $dir === false) {
OCP\JSON::error(array('data' => array_merge(array('message' => $l->t('Unable to set upload directory.')))));
die();