FILE Block

The FILE block outputs a file as an attachment element with its name and size.

FILE Block

Block Parameters

Name
type

Description

LINK*
string

File URL

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