Repeater fileupload attachments

Hi,

i created block repeater form with different blocks of content. One of them is block with fileupload. Files is upload but dont create relation with system_files table.

What i doing wrong?

This is my code

fields.yaml
....
content_block:
    tab: Blocks
    type: repeater
    prompt: 'Add block'
    itemsExpanded: false
    groups:
        block_items:
            ...
        block_attachment:
            name: Block attachment
            icon: icon-cloud-download
            fields:
                attachments:
                    label: Attachments
                    type: fileupload
                    mode: file
                    maxFiles: 5

Model.php
protected $jsonable = [
    'content_block',
];

public $attachMany = [
    'attachments' => 'System\Models\File', 'delete' => true
];

@daft @jan-vince

There is a docs article about using related records with repeater.

Thanks Jan, i’m so blind.