|
|
|
@ -4,6 +4,7 @@ |
|
|
|
|
* |
|
|
|
|
* @author Thomas Müller <thomas.mueller@tmit.eu> |
|
|
|
|
* @author Louis Chemineau <louis@chmn.me> |
|
|
|
|
* @author Côme Chilliet <come.chilliet@nextcloud.com> |
|
|
|
|
* |
|
|
|
|
* @license AGPL-3.0 |
|
|
|
|
* |
|
|
|
@ -23,15 +24,24 @@ |
|
|
|
|
namespace OCA\DAV; |
|
|
|
|
|
|
|
|
|
use OCP\Capabilities\ICapability; |
|
|
|
|
use OCP\IConfig; |
|
|
|
|
|
|
|
|
|
class Capabilities implements ICapability { |
|
|
|
|
private IConfig $config; |
|
|
|
|
|
|
|
|
|
public function __construct(IConfig $config) { |
|
|
|
|
$this->config = $config; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public function getCapabilities() { |
|
|
|
|
return [ |
|
|
|
|
$capabilities = [ |
|
|
|
|
'dav' => [ |
|
|
|
|
'chunking' => '1.0', |
|
|
|
|
// disabled because of https://github.com/nextcloud/desktop/issues/4243 |
|
|
|
|
// 'bulkupload' => '1.0', |
|
|
|
|
] |
|
|
|
|
]; |
|
|
|
|
if ($this->config->getSystemValueBool('bulkupload.enabled', false)) { |
|
|
|
|
$capabilities['dav']['bulkupload'] = '1.0'; |
|
|
|
|
} |
|
|
|
|
return $capabilities; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|