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>
This commit is contained in:
Mendon Kissling 2025-07-14 12:00:39 -04:00 • committed by GitHub
commit e64e328257
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -122,6 +122,9 @@ The loaded file name appears in the component.
The default maximum supported file size is 100 MB. 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). 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.
<details> <details>
<summary>Parameters</summary> <summary>Parameters</summary>
@ -141,11 +144,19 @@ To modify this value, see [--max-file-size-upload](/environment-variables#LANGFL
**Outputs** **Outputs**
| Name | Display Name | Info | The outputs change dynamically based on the number and type of files selected.
|------|--------------|------|
| data | Data | The parsed content of the file as a [Data](/concepts-objects) object. | If a single file is selected:
| dataframe | DataFrame | The file content as a [DataFrame](/concepts-objects#dataframe-object) object. | - **Structured Content** [DataFrame](/concepts-objects#dataframe-object): If a CSV or Excel file is selected, the component outputs tabular data.
| message | Message | The file content as a [Message](/concepts-objects#message-object) object. | - **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.
</details> </details>