FILE Block
If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect to the MCP server so that the assistant can utilize the official REST documentation.
The FILE block displays a file as an attachment element with its name and size.

Block Parameters
|
Name |
Description |
|
LINK* |
URL of the file |
|
NAME |
Display name of the file |
|
SIZE |
Size of the file in bytes. If this field is not specified, the file is displayed without a correct size |
Example
How to Use Examples in Documentation
JS
PHP
{
FILE: [
{
NAME: 'mantis.jpg',
LINK: 'https://files.shelenkov.com/bitrix/images/mantis.jpg',
SIZE: 1500000
}
]
}
[
'FILE' => [
[
'NAME' => 'mantis.jpg',
'LINK' => 'https://files.shelenkov.com/bitrix/images/mantis.jpg',
'SIZE' => 1500000
]
]
]
Continue Learning
Copied
Previous