return path of tmp file like filestorage/common does. Fixes broken folder-/multifile-download.
This commit is contained in:
parent
24bc639222
commit
c92fc9bf65
|
@ -282,7 +282,8 @@ class OC_FilesystemView {
|
||||||
if($source){
|
if($source){
|
||||||
$extention=substr($path,strrpos($path,'.'));
|
$extention=substr($path,strrpos($path,'.'));
|
||||||
$tmpFile=OC_Helper::tmpFile($extention);
|
$tmpFile=OC_Helper::tmpFile($extention);
|
||||||
return file_put_contents($tmpFile,$source);
|
file_put_contents($tmpFile,$source);
|
||||||
|
return $tmpFile;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue