---
title: "Action files__get"
description: "Gets the current user’s files from the file manager into the files constant."
---

# Action `files__get`

> **System ID:** `action_files__get`

## Description

Finds the current user’s files (`chat_id` + `bot_id`) in the file manager and stores an array in the `files` constant (fields: `name`, `channel`, `url`, `reg_user_id`, `rv_user_id`). Optionally filters by file name.

## Events (scenario branches)

| Event | When it occurs |
|-------|----------------|
| **success** | Files found and stored in `files` |
| **error** | No files or request failed |

## Parameters

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `name` | string / array | no | `null` | File name or array of names; without the parameter — all user files |

## Configuration example

```json
{
  "name": "invoice.pdf"
}
```

Or `{}` — all files of the current user.

## Related docs

- [Actions reference](/en/actionjail/reference/actions-reference.md)
