Hi guys, my intention is to get selected a couple of files which are in my alias folder. For this, it’s important, that fileinput() only wil be possible for my alias folder.
I use fileinput() liike this:
<?= $form->field($model, 'avatar[]')->fileInput(['multiple' => true,])->label('Uploadfile(s)') ?>
respectively like this:
$form->field($model, 'avatar[]')->widget(FileInput::classname(), [
'options' => ['multiple' => true],
'pluginOptions' => ['allowedFileExtensions' => ['jpg','bmp','png','docx','doc','xls','xlsx','csv','ppt','pptx', 'pdf','txt','avi','mpeg','mp3']],
]);
?>
using this code,every folder can be selected. Thats not,what I want…
Any ideas,how to define a special folder to get selected files?