roles
array|null Allowed user roles to access this module. Default only logged user. See https://www.yiiframework.com/doc/api/2.0/yii-filters-accessrule#$roles-detailuploadFolder
the directory where stored files. Default is@app/web/uploads/images
. If folder not existed, roxy will auto-create it.uploadUrl
the url which can get folder link. Default is/uploads/images
. If you are usingyii2-advanced
should include scheme (http://frontend.domain.com/uploads/images
).defaultView
display type. Default isthumb
dateFormat
Datetime format. Default isY-m-d H:i
. See: http://php.net/manual/en/function.date.phprememberLastFolder
would you want to remember last folder? Default istrue
rememberLastOrder
would you want to remember last order? Default istrue
allowExtension
allowed files extension. Default isjpeg jpg png gif mov mp3 mp4 avi wmv flv mpeg webm
checkMimeType
bool check mime type of uploaded files
Add to config file:
'modules' => [
'roxymce' => [
'class' => 'navatech\roxymce\Module',
'uploadFolder' => '@frontend/web/uploads/images',
'uploadUrl' => '/uploads/images',
],
],