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 08552a080..a0d7ee306 100644 --- a/content/docs/configuration/librechat_yaml/object_structure/file_config.mdx +++ b/content/docs/configuration/librechat_yaml/object_structure/file_config.mdx @@ -7,7 +7,7 @@ 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 13 main fields under `fileConfig`: +There are 14 main fields under `fileConfig`: - `endpoints` - `skills` @@ -19,6 +19,7 @@ There are 13 main fields under `fileConfig`: - `fileContextCharLimit` - `defaultLLMDeliveryPath` - `legacyFileUploadUX` + - `officePreview` - `ocr` - `text` - `stt` @@ -77,6 +78,9 @@ fileConfig: fileContextSizeLimit: 128 fileContextCharLimit: 1000000 legacyFileUploadUX: false + officePreview: + enabled: true + fileSizeLimit: 25 imageGeneration: percentage: 100 px: 1024 @@ -259,6 +263,34 @@ fileConfig: legacyFileUploadUX: true ``` +## 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