I have a
$fieldset. What arguments should I give to
->addField method to create an input field, that loads image to
What was done
For now I have an input field.
$fieldset->addField('image', 'image', [ 'title' => __('Image'), 'label' => __('Image'), 'name' => 'image', 'note' => 'Allow image type: jpg, jpeg, gif, png', ] );
$_FILES is empty, when I checking it in controller
$fieldset arguments was taken from this example.