Skip to content
Snippets Groups Projects
Commit c92fc9bf authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

return path of tmp file like filestorage/common does. Fixes broken folder-/multifile-download.

parent 24bc6392
No related branches found
No related tags found
No related merge requests found
......@@ -23,11 +23,11 @@
class OC_FilesystemView {
private $fakeRoot='';
public function __construct($root){
$this->fakeRoot=$root;
}
public function getAbsolutePath($path){
if(!$path){
$path='/';
......@@ -141,7 +141,7 @@ class OC_FilesystemView {
while (!feof($handle)) {
echo fread($handle, $chunkSize);
@ob_flush();
flush();
flush();
}
return $this->filesize($path);
}
......@@ -282,7 +282,8 @@ class OC_FilesystemView {
if($source){
$extention=substr($path,strrpos($path,'.'));
$tmpFile=OC_Helper::tmpFile($extention);
return file_put_contents($tmpFile,$source);
file_put_contents($tmpFile,$source);
return $tmpFile;
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment