Часть формы:
Код: Выделить всё
<?= $form->field($model, 'archive_id')->dropDownList(ArrayHelper::map(Archives::getArchiveslist(),'id','name')) ?>
<div>
<label for=""><?=Module::t('module','ATTACHED_FILE')?></label>
<?= FileUploadUI::widget([
'model' => $model,
'formView' => '@app/views/common/uploadButton',
'downloadTemplateView' => '@app/views/common/downloadTemplate',
'attribute' => 'attached_file',
'url' => ['/admin/catalog/articles/file-upload'],
'gallery' => false,
'fieldOptions' => [
'multiple' => false,
],
'clientOptions' => [
'maxFileSize' => 200000000,
'autoUpload' => 'true',
],
]); ?>
</div>
Если можно, то как?