diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2012-03-27 02:24:52 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2012-03-27 02:24:52 +0200 |
commit | c92fc9bf651e79aa44803eeeed1d16499a5f08e6 (patch) | |
tree | 9ae5f2f0658442e9e464c314bace4f01a450dc43 /lib/filesystemview.php | |
parent | 24bc639222b3f4344bed388ca7fd834f8e70dff8 (diff) | |
download | nextcloud-server-c92fc9bf651e79aa44803eeeed1d16499a5f08e6.tar.gz nextcloud-server-c92fc9bf651e79aa44803eeeed1d16499a5f08e6.zip |
return path of tmp file like filestorage/common does. Fixes broken folder-/multifile-download.
Diffstat (limited to 'lib/filesystemview.php')
-rw-r--r-- | lib/filesystemview.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/filesystemview.php b/lib/filesystemview.php index 89e0385fe9c..39e47975b28 100644 --- a/lib/filesystemview.php +++ b/lib/filesystemview.php @@ -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; } } } |