From e64e3282578b8ec1a27c047564ce14f4877d1f53 Mon Sep 17 00:00:00 2001 From: Mendon Kissling <59585235+mendonk@users.noreply.github.com> Date: Mon, 14 Jul 2025 12:00:39 -0400 Subject: [PATCH] docs: file loader output behavior (#9045) * file-loader output * remove-duplicate-info * clarify-output * Update docs/docs/Components/components-data.mdx Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com> --------- Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com> --- docs/docs/Components/components-data.mdx | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/docs/docs/Components/components-data.mdx b/docs/docs/Components/components-data.mdx index 25bcd318b..9afc02d0a 100644 --- a/docs/docs/Components/components-data.mdx +++ b/docs/docs/Components/components-data.mdx @@ -122,6 +122,9 @@ The loaded file name appears in the component. The default maximum supported file size is 100 MB. To modify this value, see [--max-file-size-upload](/environment-variables#LANGFLOW_MAX_FILE_SIZE_UPLOAD). +The **File** component’s outputs change dynamically based on the number and type of files you select. +For more information, expand the following **Parameters** section, and then review the **Outputs** parameters. +
Parameters @@ -141,11 +144,19 @@ To modify this value, see [--max-file-size-upload](/environment-variables#LANGFL **Outputs** -| Name | Display Name | Info | -|------|--------------|------| -| data | Data | The parsed content of the file as a [Data](/concepts-objects) object. | -| dataframe | DataFrame | The file content as a [DataFrame](/concepts-objects#dataframe-object) object. | -| message | Message | The file content as a [Message](/concepts-objects#message-object) object. | +The outputs change dynamically based on the number and type of files selected. + +If a single file is selected: +- **Structured Content** [DataFrame](/concepts-objects#dataframe-object): If a CSV or Excel file is selected, the component outputs tabular data. +- **Structured Content** [Data](/concepts-objects#data-object): If a JSON file is selected, the component outputs parsed JSON data. +- **Raw Content** [Message](/concepts-objects#message-object): Outputs the file's raw text content. +- **File Path** [Message](/concepts-objects#message-object): Outputs the path to the file on the Langflow server. + +If multiple files are selected: +- **Files** [DataFrame](/concepts-objects#dataframe-object): A table containing the content and metadata of all selected files. + +If no files are selected: +- No outputs are displayed.