. * */ // only need filesystem apps $RUNTIME_APPTYPES=array('filesystem'); // Init owncloud // Check if we are a user OCP\User::checkLoggedIn(); $files = $_GET["files"]; $dir = $_GET["dir"]; $files_list = json_decode($files); if ($files_list === NULL ) { $files_list = array($files); } foreach ($files_list as $f) error_log("file: $f"); OC_Files::get($dir, $files_list, $_SERVER['REQUEST_METHOD'] == 'HEAD' ? true : false);