Hi all, I have editing record:

This is file Controller

$model = Logo::findFirst($id);
$form = new LogoForm($model);

if ($this->request->isPost()) {
    $params = array_merge($this->request->getPost(), $_FILES);

    if ($form->isValid($params) == true) {
    }
}

And this is file LogoForm.php

$file = new \Phalcon\Forms\Element\File('file');
$file->setLabel('Select a file: ' . $required);
$file->addValidators([
    new \Phalcon\Validation\Validator\File([
        'maxSize' => '10M',
    ])
]);

When submit form show error:

Select a file: * Value at index: 'value' type: 'array' cannot be rendered

Things were normal but with the edit in LoginForm ($ model); error