> ## Documentation Index
> Fetch the complete documentation index at: https://docs.testbrick.com/llms.txt
> Use this file to discover all available pages before exploring further.

# File Uploads

> Test file upload flows in browser tests

# File Uploads

TestBrick handles file uploads during test recording and replay. Upload images, documents, or any file type your app accepts.

## How it works

1. During recording, click the file input or "Upload" button
2. Select a file — TestBrick captures the upload step
3. The file is stored and replayed during test execution

## Supported file types

Any file type your app accepts — images, PDFs, documents, CSVs, etc.

## During replay

TestBrick downloads the stored file and uses Playwright's `setInputFiles` to inject it into the file input. The app processes it exactly as a real user upload.

<Tip>
  Keep test files small (under 5MB) for faster test execution.
</Tip>
