dev-master
9999999-devuse in controller
BSD-3-Clause
The Requires
by zhang jingxian
extension yii2 fileupload
0.1.0
0.1.0.0use in controller
BSD-3-Clause
The Requires
by zhang jingxian
extension yii2 fileupload
use in controller
use in controller, (*1)
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist osenyursa/yii2-fileupload-action "0.1.0"
or add, (*4)
"osenyursa/yii2-fileupload-action": "0.1.0"
to the require section of your composer.json
file., (*5)
Once the extension is installed, simply use it in your code by :, (*6)
// in controller class FileController extends Controller { public function actions() { return [ 'ajax-upload' => [ 'class' => UploadAction::className(), 'rules' => ['skipOnEmpty' => false, 'maxFiles' => 4], 'name' => 'cover', 'savePath' => 'upload/' . date('Y-m-d') . '/', ] ]; } public function actionUpload() { return $this->render('upload'); } }
use in controller
BSD-3-Clause
extension yii2 fileupload
use in controller
BSD-3-Clause
extension yii2 fileupload