Fix the download of multiple files from the webUI

needed a setupFS call

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2020-12-03 13:20:01 +01:00
parent 64bc7c79e8
commit c9cd633665
No known key found for this signature in database
GPG key ID: F941078878347C0C

View file

@ -109,6 +109,7 @@ class OC_Files {
* @param array $params ; 'head' boolean to only send header of the request ; 'range' http range header
*/
public static function get($dir, $files, $params = null) {
OC_Util::setupFS();
$view = \OC\Files\Filesystem::getView();
$getType = self::FILE;
$filename = $dir;