i want upload multi images from html field, here is view code :
<input type="file" name="file[]" multiple id="file"/>
and my problem is in controller , as every yii2's developer knows these codes for upload file in simple way :
$model->logoFile = UploadedFile::getInstance($model, 'logoFile');
$model->logoFile->saveAs('uploads/' . $model->logoFile->name);
$model->logoImage = $model->logoFile->name;
but in my case the images did not come from yii fields liks this one :
<?= $form->field($model, 'image')->fileInput() ?>
so any idea how can i fix my controller to be get multi images and save if in server as well
Note : my tamplate is advanced .