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

# Files & screenshots

> Download, upload, and capture files from your browser sessions

<CardGroup cols={2}>
  <Card title="Downloads" icon="download" href="/platform/browser/files/downloads">
    Trigger file downloads and retrieve them from your browser sessions programmatically.
  </Card>

  <Card title="Uploads" icon="upload" href="/platform/browser/files/uploads">
    Upload local files into browser sessions to interact with file input elements.
  </Card>

  <Card title="Screenshots" icon="camera" href="/platform/browser/files/screenshots">
    Capture full-page or element-level screenshots from your browser sessions.
  </Card>

  <Card title="PDFs" icon="file-pdf" href="/platform/browser/files/pdfs">
    Generate PDFs from any web page rendered in your browser session.
  </Card>
</CardGroup>

## When to use each

| Feature                                                | Use when                                                                      |
| ------------------------------------------------------ | ----------------------------------------------------------------------------- |
| [**Downloads**](/platform/browser/files/downloads)     | You need to retrieve a file the browser downloaded (PDFs, CSVs, ZIPs, etc.)   |
| [**Uploads**](/platform/browser/files/uploads)         | Your automation needs to interact with a file input field                     |
| [**Screenshots**](/platform/browser/files/screenshots) | You want a visual snapshot of a page or element for debugging or verification |
| [**PDFs**](/platform/browser/files/pdfs)               | You want to generate, download, or display a PDF from a web page              |

## How files are stored

Downloaded files are synced to Browserbase's cloud storage automatically — you don't need to configure a download path. Files are available via the API after the session completes.

Screenshots and PDFs are returned directly in your automation code and saved locally, not stored in Browserbase cloud storage.

<Note>
  Downloaded files are renamed with a Unix timestamp to avoid conflicts (e.g. `report.pdf` → `report-1719265797164.pdf`).
</Note>
