tsdogs / yii2-fsmanager
Module for a simple File Manager
Installs: 17
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- php: >=5.4.0
- kartik-v/yii2-dialog: ~1.0
- kartik-v/yii2-grid: ~3.1
- kartik-v/yii2-popover-x: ~1.0
- kartik-v/yii2-widget-fileinput: ~1.0.0
- yiisoft/yii2: ~2.0.0
Requires (Dev)
- phpunit/dbunit: ~1.0
- phpunit/phpunit: ~4.0
This package is auto-updated.
Last update: 2024-11-12 23:15:15 UTC
README
Extension for file managing files on filesysstem
Demo
You can see the demo on the krajee website
Installation
-
The preferred way to install this extension is through composer.
Either run
php composer.phar require tsdogs/yii2-fsmanager "~1.0.0"
or add
"tsdogs/yii2-fsmanager": "~1.0.0"
to the require section of your
composer.json
file. -
Add module to
common/config/main.php
'modules' => [ ... 'fsmanager' => [ 'class' => tsdogs\fsmanager\Module::className(), 'tempPath' => '@app/uploads/temp', 'publicPath' => '@app/uploads/store', 'rules' => [ // Rules according to the FileValidator 'maxFiles' => 10, // Allow to upload maximum 3 files, default to 3 'mimeTypes' => 'image/png', // Only png images 'maxSize' => 1024 * 1024 // 1 MB ], 'viewRoles' => ['@'], // roles able to view files 'uploadRoles' => ['admins'], // roles able to manage files ] ... ]
-
Make sure that you specified
maxFiles
in module rules andmaxFileCount
onAttachmentsInput
to the number that you want
Change log
- May 26, 2017 - Initial version