summaryrefslogtreecommitdiffstats
path: root/apps/files/lib/App.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/lib/App.php')
-rw-r--r--apps/files/lib/App.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/files/lib/App.php b/apps/files/lib/App.php
index 34d3ab4384c..d16291c6fca 100644
--- a/apps/files/lib/App.php
+++ b/apps/files/lib/App.php
@@ -53,4 +53,14 @@ class App {
return self::$navigationManager;
}
+ public static function extendJsConfig($settings) {
+ $appConfig = json_decode($settings['array']['oc_appconfig'], true);
+
+ $maxChunkSize = (int)(\OC::$server->getConfig()->getAppValue('files', 'max_chunk_size', (10 * 1024 * 1024)));
+ $appConfig['files'] = [
+ 'max_chunk_size' => $maxChunkSize
+ ];
+
+ $settings['array']['oc_appconfig'] = json_encode($appConfig);
+ }
}