dev-master
9999999-devYii2 helper for creating and upload file or files
MIT
The Requires
by Ganesh
yii2 helper upload
Wallogit.com
2017 © Pedro Peláez
Yii2 helper for creating and upload file or files
Yii2 helper for creating and caching thumbnails on real time., (*1)
The preferred way to install this extension is through composer., (*2)
php composer.phar require --prefer-dist alkurn/yii2-upload "dev-master"
or add, (*3)
"alkurn/yii2-upload" : "*"
to the require section of your application's composer.json file., (*4)
components section of your application's configuration file (optional), for example:'components' => [
'upload' => [
'class' =>'alkurn\upload\Upload',
'uploadsAlias' => Yii::getAlias('@storage/'),
'uploadsModel' => CoreMedia::class,
],
]
and in bootstrap section, for example:, (*5)
'bootstrap' => ['log', 'thumbnail', 'upload'],
It is necessary if you want to set global helper's settings for the application., (*6)
For example:, (*7)
use alkurn\upload\Upload;
$image = Yii::$app->upload->upload('image', $model);
Yii2 helper for creating and upload file or files
MIT
yii2 helper upload