diff --git a/apps/files/lib/capabilities.php b/apps/files/lib/capabilities.php index 690cc314ccd6..df90eb433aec 100644 --- a/apps/files/lib/capabilities.php +++ b/apps/files/lib/capabilities.php @@ -11,13 +11,23 @@ class Capabilities { public static function getCapabilities() { + $caps = array( + 'bigfilechunking' => true, + ); + + if (\OC_Config::getValue('dbtype', 'sqlite') === 'sqlite3') { + $caps['maxparallels'] = 1; + } else { + $caps['maxparallels'] = 0; + } + return new \OC_OCS_Result(array( 'capabilities' => array( - 'files' => array( - 'bigfilechunking' => true, - ), + 'files' => $caps ), - )); + ) + ); + return new \OC_OCS_Result($caps); } }