aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/dav
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2016-07-23 07:59:28 -0400
committerAndrew Manning <tamanning@zoho.com>2016-07-23 07:59:28 -0400
commiteb1eb38c0174b542e388b32039589c0030ebd073 (patch)
treeb12935dc8fedb6ff5975bcaf4da391dc58cabcd2 /vendor/sabre/dav
parent3c5598407eb327c056d803b3afc4364fd6e107ab (diff)
downloadvolse-hubzilla-eb1eb38c0174b542e388b32039589c0030ebd073.tar.gz
volse-hubzilla-eb1eb38c0174b542e388b32039589c0030ebd073.tar.bz2
volse-hubzilla-eb1eb38c0174b542e388b32039589c0030ebd073.zip
AJAX single upload might be working, but permissions problems seem to cause failure.
Diffstat (limited to 'vendor/sabre/dav')
-rw-r--r--vendor/sabre/dav/lib/DAV/Browser/Plugin.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/vendor/sabre/dav/lib/DAV/Browser/Plugin.php b/vendor/sabre/dav/lib/DAV/Browser/Plugin.php
index 49359a045..72b04065a 100644
--- a/vendor/sabre/dav/lib/DAV/Browser/Plugin.php
+++ b/vendor/sabre/dav/lib/DAV/Browser/Plugin.php
@@ -163,7 +163,7 @@ class Plugin extends DAV\ServerPlugin {
* @return bool
*/
function httpPOST(RequestInterface $request, ResponseInterface $response) {
-
+
$contentType = $request->getHeader('Content-Type');
list($contentType) = explode(';', $contentType);
if ($contentType !== 'application/x-www-form-urlencoded' &&
@@ -179,7 +179,7 @@ class Plugin extends DAV\ServerPlugin {
if ($this->server->emit('onBrowserPostAction', [$uri, $postVars['sabreAction'], $postVars])) {
- switch ($postVars['sabreAction']) {
+ switch ($postVars['sabreAction']) {
case 'mkcol' :
if (isset($postVars['name']) && trim($postVars['name'])) {
@@ -221,7 +221,8 @@ class Plugin extends DAV\ServerPlugin {
if ($_FILES) $file = current($_FILES);
else break;
-
+ logger('$_FILES: ' . json_encode($_FILES));
+ logger('$file: ' . json_encode($file));
list(, $newName) = URLUtil::splitPath(trim($file['name']));
if (isset($postVars['name']) && trim($postVars['name']))
$newName = trim($postVars['name']);