Overview

The File Block allows you to upload and use file data in your workflow. It supports various file types including PDF, Microsoft Word documents (.doc, .docx), and CSV files. This block is particularly useful when you need to work with external data or documents within your flow.

File Block ScreenshotFile Block Screenshot

Inputs

This block does not have any inputs.

Outputs

data
file

The uploaded file data that can be used by other blocks in the workflow.

Editor Settings

File
file

Upload a file from your local system. Supported file types include:

  • PDF files (.pdf)
  • Microsoft Word documents (.doc, .docx)
  • CSV files (.csv)
Width
number
default:300

The width of the block in pixels.

Hidden
boolean
default:true

Whether the block is hidden in the block menu.

Example: Using a File Block with PDF Analysis

  1. Add a File Block to your flow.
  2. In the block’s settings, click “Upload File” and select a PDF document from your local file system.
  3. Connect the data output of the File Block to an AI block capable of analyzing PDF content, such as a custom PDF Analysis block.
  4. Run your flow. The PDF content will be processed by the AI block for further analysis or extraction.

Error Handling

The File Block will throw an error if:

  • No file data is provided
  • The file provider is not available
  • The file upload fails or cannot be accessed

Ensure that you have the necessary permissions to use and process the files you upload, especially when working with sensitive or copyrighted material.

FAQ

See Also