Skip to content

Commit

Permalink
perf(files): Adjust default chunk size for chunked upload to 100MiB
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <kate@provokateurin.de>
  • Loading branch information
provokateurin committed Sep 30, 2024
1 parent b6a23b2 commit f2a019e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files/lib/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static function getNavigationManager(): INavigationManager {
public static function extendJsConfig($settings): void {
$appConfig = json_decode($settings['array']['oc_appconfig'], true);

$maxChunkSize = (int)Server::get(IConfig::class)->getAppValue('files', 'max_chunk_size', (string)(10 * 1024 * 1024));
$maxChunkSize = (int)Server::get(IConfig::class)->getAppValue('files', 'max_chunk_size', (string)(100 * 1024 * 1024));

Check notice

Code scanning / Psalm

DeprecatedMethod Note

The method OCP\IConfig::getAppValue has been marked as deprecated
$appConfig['files'] = [
'max_chunk_size' => $maxChunkSize
];
Expand Down

0 comments on commit f2a019e

Please sign in to comment.