// chunked handling
if (isset($_SERVER['HTTP_OC_CHUNKED'])) {
- list(, $name) = \Sabre_DAV_URLUtil::splitPath($this->path);
+ list($path, $name) = \Sabre_DAV_URLUtil::splitPath($this->path);
$info = OC_FileChunking::decodeName($name);
if (empty($info)) {
$chunk_handler = new OC_FileChunking($info);
$chunk_handler->store($info['index'], $data);
if ($chunk_handler->isComplete()) {
- $newPath = $this->path . '/' . $info['name'];
+ $newPath = $path . '/' . $info['name'];
$chunk_handler->file_assemble($newPath);
return $this->getETagPropertyForPath($newPath);
}