How to set fileinput of yii to a special folder

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?

fileInput() generate the HTML input code for uploading file from client computers… if you want your customers/visitors to be able to select a file from the server (your alias)… then don’t use the fileInput() at all… present them the list of files to choose from… the files are already on the server if I understood you right.

Okay. Good to know. Thx for ur hint. This thread can be closed as succesfully solved