aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Files/Sharing/FilesDropPlugin.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/lib/Files/Sharing/FilesDropPlugin.php')
-rw-r--r--apps/dav/lib/Files/Sharing/FilesDropPlugin.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/dav/lib/Files/Sharing/FilesDropPlugin.php b/apps/dav/lib/Files/Sharing/FilesDropPlugin.php
index 9d883be81fc..ccf7cd28f4a 100644
--- a/apps/dav/lib/Files/Sharing/FilesDropPlugin.php
+++ b/apps/dav/lib/Files/Sharing/FilesDropPlugin.php
@@ -73,7 +73,7 @@ class FilesDropPlugin extends ServerPlugin {
if ($isFileRequest && ($nickName == null || trim($nickName) === '')) {
throw new MethodNotAllowed('Nickname is required for file requests');
}
-
+
// If this is a file request we need to create a folder for the user
if ($isFileRequest) {
// Check if the folder already exists
@@ -83,9 +83,9 @@ class FilesDropPlugin extends ServerPlugin {
// Put all files in the subfolder
$path = $nickName . '/' . $path;
}
-
+
$newName = \OC_Helper::buildNotExistingFileNameForView('/', $path, $this->view);
- $url = $request->getBaseUrl() . $newName;
+ $url = $request->getBaseUrl() . '/files/' . $this->share->getToken() . $newName;
$request->setUrl($url);
}