FILE Block
Choose a tool for developing with an AI agent:
- use Alaio Vibecode to build an app for Bitrix24 from a task description without knowing any programming language. The agent writes the code and deploys the app to a server, with no manual hosting setup
- use the MCP server to develop a REST API integration in your own project. The agent refers to 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
Python
PHP
{
FILE: [
{
NAME: 'mantis.jpg',
LINK: 'https://files.shelenkov.com/bitrix/images/mantis.jpg',
SIZE: 1500000
}
]
}
attach = {
"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
Was the article helpful?
Previous