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

Block Parameters
|
Name |
Description |
|
LINK* |
File URL |
|
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