commit 16f24fc3c12cff7e6430d2331601836d4ce154e0
parent 59816c810bb066a960221f9a7dcb92c19e8103de
Author: Jan Dankert <develop@jandankert.de>
Date: Thu, 7 Nov 2019 22:05:43 +0100
Fix: Needing a filename for a new file.
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/cms/CMS.class.php b/cms/CMS.class.php
@@ -109,9 +109,9 @@ class CMS
return $result;
}
- public function fileAdd($parentid,$value)
+ public function fileAdd($parentid,$filename,$value)
{
- $result = $this->call(CMS_WRITE,'folder','createfile',array('id'=>$parentid,'value'=>$value) );
+ $result = $this->call(CMS_WRITE,'folder','createfile',array('id'=>$parentid,'filename'=>$filename,'value'=>$value) );
return $result;
}
diff --git a/dav/method/PUT.class.php b/dav/method/PUT.class.php
@@ -36,7 +36,7 @@ class DAV_PUT extends DAV
}
$folderid = $this->request->folderid;
- $this->client->fileAdd( $folderid,$this->data );
+ $this->client->fileAdd( $folderid,$this->request->basename,$this->data );
$this->httpStatus('201 Created');
return;
}