mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 17:52:02 -04:00
The diff can be checked using: git diff --ignore-all-space --ignore-blank-lines To see only the changes not related to blank lines. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
23 lines
555 B
PHP
23 lines
555 B
PHP
<?php
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: 2017-2024 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
namespace OCA\Files;
|
|
|
|
use OCA\Files\Service\ChunkedUploadConfig;
|
|
|
|
class App {
|
|
public static function extendJsConfig($settings): void {
|
|
$appConfig = json_decode($settings['array']['oc_appconfig'], true);
|
|
|
|
$appConfig['files'] = [
|
|
'max_chunk_size' => ChunkedUploadConfig::getMaxChunkSize(),
|
|
];
|
|
|
|
$settings['array']['oc_appconfig'] = json_encode($appConfig);
|
|
}
|
|
}
|