Permalink
Browse files

Adding rule for Node name

  • Loading branch information...
1 parent fdfad76 commit ae6d14a1934383152d40b863e66037bd02c6d151 @ghecquet ghecquet committed Aug 26, 2016
Showing with 2 additions and 1 deletion.
  1. +2 −1 core/src/plugins/core.mq/MqManager.php
@@ -530,7 +530,7 @@ public function generateCaddyFile($params) {
if ($active) {
- $authURL = $serverURL . "/api/{repo}/upload/put?xhr_uploader=true";
+ $authURL = $serverURL . "/api/{repo}/upload/put/{nodedir}?xhr_uploader=true";
$host = $params["UPLOAD_HOST"];
$port = $params["UPLOAD_PORT"];
@@ -565,6 +565,7 @@ public function generateCaddyFile($params) {
"pydioupload " . $path => [],
"pydiopost " . $path => [$authURL, "{\n" .
"\t\theader X-File-Direct-Upload upload-finished\n" .
+ "\t\theader X-File-Name {nodename}\n" .
"\t}"
],
]

0 comments on commit ae6d14a

Please sign in to comment.