dev-master
9999999-dev https://github.com/keygenqt/upload-s3Widget from form image ajax load.
BSD-3-Clause
The Requires
- bower-asset/dropzone *
- yiisoft/yii2 *
- php >=5.4.0
extension yii2 s3 upload
Widget from form image ajax load.
Upload file to s3. Checked yii2 and yii1 (php 5.3), (*1)
The preferred way to install this extension is through composer., (*2)
Either add, (*3)
"require": { "keygenqt/upload-s3": "*" }
of your composer.json
file., (*4)
The latest version of the module is v0.5.0 BETA
., (*5)
Config:, (*6)
'uploadS3' => [ 'class' => 'keygenqt\uploadS3\UploadS3', 'key' => '...', 'secret' => '...', 'bucket' => '...', 'static_url' => 'http://domen.com/', (optional) ]
Upload:, (*7)
public function uploadIcon($path, $name) { if(($url = Yii::$app->uploadS3->upload($path, $name)) !== false) { return $url; } return false; }
upload-s3 is released under the BSD 3-Clause License. See the bundled LICENSE.md
for details., (*8)
Widget from form image ajax load.
BSD-3-Clause
extension yii2 s3 upload