From c3e19cf95eed9209bf3e1c0ec3a1104bb69a7d6c Mon Sep 17 00:00:00 2001 From: TomasPalsson Date: Tue, 29 Sep 2026 15:22:40 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=97=20docs:=20Document=20fileConfig.of?= =?UTF-8?q?ficePreview=20for=20Large=20PowerPoint=20and=20Word=20Previews?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../object_structure/file_config.mdx | 34 ++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/content/docs/configuration/librechat_yaml/object_structure/file_config.mdx b/content/docs/configuration/librechat_yaml/object_structure/file_config.mdx index cb8f6abba..449fb0ccf 100644 --- a/content/docs/configuration/librechat_yaml/object_structure/file_config.mdx +++ b/content/docs/configuration/librechat_yaml/object_structure/file_config.mdx @@ -7,13 +7,14 @@ icon: FileCode The `fileConfig` object allows you to configure file handling settings for the application, including size limits and MIME type restrictions. This section provides a detailed breakdown of the `fileConfig` object structure. -There are 8 main fields under `fileConfig`: +There are 9 main fields under `fileConfig`: - `endpoints` - `serverFileSizeLimit` - `avatarSizeLimit` - `imageGeneration` - `fileTokenLimit` + - `officePreview` - `ocr` - `text` - `stt` @@ -62,6 +63,9 @@ fileConfig: serverFileSizeLimit: 1000 avatarSizeLimit: 2 fileTokenLimit: 100000 + officePreview: + enabled: true + fileSizeLimit: 25 imageGeneration: percentage: 100 px: 1024 @@ -152,6 +156,34 @@ fileConfig: fileTokenLimit: 100000 ``` +## officePreview + + + +**Description:** Files up to 350 KB are always previewed as before. A larger `.pptx` or `.docx` output is stored as a small preview page, and the viewer's browser loads the file's own bytes from file storage when the preview opens. Files above the limit show that they are too large to preview; they can still be downloaded. + +`officePreview` supports the following parameters: + +- `enabled` (Boolean) + - Turns large-file previews on or off. + - **Default:** `true` + - When `false`, files between 350 KB and 2 MB show a plain text outline, and larger files show that they are too large to preview. + +- `fileSizeLimit` (Number) + - The largest file that can be previewed, specified in megabytes (MB). Must be `0` or more. + - **Default:** `25` + +```yaml filename="fileConfig / officePreview" +fileConfig: + officePreview: + enabled: true + fileSizeLimit: 25 +``` + ## ocr