# File

<figure><img src="/files/u2weRl8NRPRVFp0p9d1L" alt="" width="282"><figcaption></figcaption></figure>

The File Loader is a versatile document loader that supports multiple file formats including TXT, JSON, CSV, DOCX, PDF, Excel, PowerPoint, and more. This module provides a unified interface for loading and processing various file types.

This module provides a sophisticated file loader that can:

* Load multiple file formats
* Support both base64-encoded files and files from storage
* Handle PDF-specific processing options
* Process JSON and JSONL with pointer extraction
* Support text splitting
* Customize metadata extraction
* Handle file storage integration

## Inputs

### Required Parameters

* **File**: The file(s) to process (supports multiple formats)

### Optional Parameters

* **Text Splitter**: A text splitter to process the extracted content
* **PDF Usage**: Choose between:
  * One document per page
  * One document per file
* **Use Legacy Build**: Use legacy build for PDF compatibility issues
* **JSONL Pointer Extraction**: Pointer name for JSONL files
* **Additional Metadata**: JSON object with additional metadata
* **Omit Metadata Keys**: Comma-separated list of metadata keys to omit

## Outputs

* **Document**: Array of document objects containing metadata and pageContent
* **Text**: Concatenated string from pageContent of documents

## Supported File Types

* Text Files (.txt)
* JSON Files (.json)
* JSONL Files (.jsonl)
* CSV Files (.csv)
* PDF Files (.pdf)
* Word Documents (.docx)
* Excel Files (.xlsx, .xls)
* PowerPoint Files (.pptx, .ppt)
* And more...

## Features

* Multi-format support
* Storage integration
* PDF processing options
* JSON pointer extraction
* Text splitting support
* Metadata customization
* Error handling
* MIME type detection

## File Processing Options

### PDF Processing

* Per-page splitting
* Single document mode
* Legacy build support
* OCR compatibility

### JSON/JSONL Processing

* Pointer-based extraction
* Structured data handling
* Array processing
* Nested object support

## Notes

* Automatically detects file type
* Handles multiple files simultaneously
* Supports file storage integration
* Preserves file metadata
* Handles large files efficiently
* Error handling for invalid files
* Memory-efficient processing


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.flowiseai.com/integrations/langchain/document-loaders/file-loader.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
