Вот форма. Она простая. мне нужно просто загрузить все изображения в папку корня uploads и чтобы в базе остался прописан их адрес:
<?php $form = ActiveForm::begin(['options' => ['enctype' => 'multipart/form-data']]) ?>
<?= $form->field($model, 'title')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'text')->textarea(['rows' => 6]) ?>
<?= $form->field($model, 'url')->textInput(['maxlength' => true]) ?>
<?= $form->field($model, 'status')->dropDownList(['Черновик','Публикация']) ?>
<?= $form->field($model, 'sort')->textInput() ?>
<?= $form->field($model, 'date_added')->textInput() ?>
<?= $form->field($model, 'main_img')->fileInput(['maxlength' => true]) ?>
<?= $form->field($model, 'first_img')->fileInput(['maxlength' => true]) ?>
<?= $form->field($model, 'sec_img')->fileInput(['maxlength' => true]) ?>
<?= $form->field($model, 'third_img')->fileInput(['maxlength' => true]) ?>
<?= $form->field($model, 'fou_img')->fileInput(['maxlength' => true]) ?>
<?= $form->field($model, 'fiv_img')->fileInput(['maxlength' => true]) ?>
<?= $form->field($model, 'six_img')->fileInput(['maxlength' => true]) ?>
<?= $form->field($model, 'sev_img')->fileInput(['maxlength' => true]) ?>
<?= $form->field($model, 'eag_img')->fileInput(['maxlength' => true]) ?>
<div class="form-group">
<?= Html::submitButton('Save', ['class' => 'btn btn-success']) ?>
</div>
<?php ActiveForm::end(); ?>