- Register event listener in the register method - Remove hook for injecting max_chunk_size in app config and move that code directly in JSConfigHelper - Remove getUserFolder deprecated API usage Signed-off-by: Carl Schwan <carlschwan@kde.org>pull/59831/head
parent
351d3c6377
commit
0aafc14272
@ -1,23 +0,0 @@ |
||||
<?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); |
||||
} |
||||
} |
||||
Loading…
Reference in new issue