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.

FILE Block

Block Parameters

Name
type

Description

LINK*
string

URL of the file

NAME
string

Display name of the file

SIZE
integer

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

{
            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