Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload file extension #146

Open
akozar opened this issue Oct 15, 2021 · 1 comment
Open

Upload file extension #146

akozar opened this issue Oct 15, 2021 · 1 comment

Comments

@akozar
Copy link

akozar commented Oct 15, 2021

How can I set allowed filetypes to upload?

<?php echo $form->field($model, 'content')->widget(CKEditor::class,[ 'editorOptions' => ElFinder::ckeditorOptions('elfinder',[ 'filter' => 'image', ]), ]) ?>

@renat1015
Copy link

renat1015 commented Sep 12, 2022

'controllerMap' => [ 'elfinder' => [ 'class' => 'mihaildev\elfinder\Controller', 'access' => ['@'], 'disabledCommands' => ['netmount', 'mkfile'], 'roots' => [ [ 'path' => './uploads/images/post', 'name' => 'Files', 'options' => [ 'uploadAllow' => ['image'], 'uploadOrder' => ['allow', 'deny'], ], ], ], ] ],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants