From 2ea6713504aa49d1a8cb9a7efaad8706484986c1 Mon Sep 17 00:00:00 2001 From: Git'Fellow <12234510+solracsf@users.noreply.github.com> Date: Mon, 15 Jan 2024 14:41:36 +0100 Subject: fix: Max file size for metadata generation Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> Co-Authored-By: Louis Signed-off-by: Richard Steinmetz --- config/config.sample.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'config/config.sample.php') diff --git a/config/config.sample.php b/config/config.sample.php index 8b3c9feae45..f2d06d9acea 100644 --- a/config/config.sample.php +++ b/config/config.sample.php @@ -1373,6 +1373,15 @@ $CONFIG = [ 'OC\Preview\XBitmap', ], +/** + * Maximum file size for metadata generation. + * If a file exceeds this size, metadata generation will be skipped. + * Note: memory equivalent to this size will be used for metadata generation. + * + * Default: 256 megabytes. + */ +'metadata_max_filesize' => 256, + /** * LDAP * -- cgit v1.2.3