langflow icon indicating copy to clipboard operation
langflow copied to clipboard

feat(file-component): extend file processing capabilities

Open raphaelchristi opened this issue 1 year ago • 0 comments

Overview

Extends FileComponent with multi-format support while preserving core functionality.

Key Changes

Component Output Structure

# Original
outputs = [*BaseFileComponent._base_outputs]

# Enhanced
outputs = [
    Output(display_name="DataFrame", name="dataframe", method="get_dataframe"),
    Output(display_name="Raw Data", name="raw_data", method="get_raw_data"),
    Output(display_name="File Path", name="file_paths", method="get_file_paths")
]

Added Features

  • Format Support: JSON, CSV, XML, YAML, HTML, TXT, MD, MDX, PDF, DOCX, PY, SH, SQL, JS, TS, TSX, ZIP
  • Data Output Types:
    • Structured data with DataFrame integration
    • Raw data (Message type)
    • Customized file path handling

raphaelchristi avatar Dec 02 '24 15:12 raphaelchristi