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.